{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# An Introduction to Combining Data with Pandas' `merge`, `join`, and `concat`\n",
    "\n",
    "This notebook contains code examples to use with the article of the same name, along with light commentary on each of the examples. "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "\n",
    "pd.set_option(\"display.max_columns\", 50)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Importing Data\n",
    "\n",
    "Here you will import the temperature and precipitation climate normals datasets into DataFrames. Calling `.head()` on the DataFrame will give you a 5 row preview of your data, and the `shape` attribute will give you the dimensions of the data in the form `(rows, columns)`. These are great sanity checks to run before doing too much with the data. "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100101</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100102</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100103</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100104</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100105</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION            STATION_NAME ELEVATION  LATITUDE   LONGITUDE  \\\n",
       "0  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "1  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "2  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "3  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "4  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "\n",
       "       DATE  DLY-CLDD-BASE45  DLY-CLDD-BASE50  DLY-CLDD-BASE55  \\\n",
       "0  20100101                6                2            -7777   \n",
       "1  20100102                6                2                1   \n",
       "2  20100103                6                2                1   \n",
       "3  20100104                6                2                1   \n",
       "4  20100105                6                2                1   \n",
       "\n",
       "   DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  DLY-CLDD-BASE70  \\\n",
       "0            -7777            -7777                0                0   \n",
       "1            -7777            -7777                0                0   \n",
       "2            -7777            -7777                0                0   \n",
       "3            -7777            -7777                0                0   \n",
       "4            -7777            -7777                0                0   \n",
       "\n",
       "   DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  DLY-HTDD-BASE50  \\\n",
       "0                0            -7777                1                2   \n",
       "1                0            -7777                1                2   \n",
       "2                0            -7777                1                2   \n",
       "3                0            -7777                1                2   \n",
       "4                0            -7777            -7777                2   \n",
       "\n",
       "   DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \n",
       "0                6                7               10               15  \n",
       "1                6                7               10               15  \n",
       "2                5                7               10               15  \n",
       "3                5                7               10               15  \n",
       "4                5                7               10               15  "
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "climate_temp = pd.read_csv(\"climate_temp.csv\")\n",
    "climate_temp.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(127020, 21)"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "climate_temp.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100101</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>98</td>\n",
       "      <td>43</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100102</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>99</td>\n",
       "      <td>44</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100103</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>100</td>\n",
       "      <td>44</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100104</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>101</td>\n",
       "      <td>45</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100105</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>102</td>\n",
       "      <td>45</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION            STATION_NAME      DATE  DLY-PRCP-25PCTL  \\\n",
       "0  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100101            -6.66   \n",
       "1  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100102            -6.66   \n",
       "2  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100103            -6.66   \n",
       "3  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100104            -6.66   \n",
       "4  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100105            -6.66   \n",
       "\n",
       "   DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "0             -666            -66.6            -6.66             -666   \n",
       "1             -666            -66.6            -6.66             -666   \n",
       "2             -666            -66.6            -6.66             -666   \n",
       "3            -9999          -9999.0            -6.66            -9999   \n",
       "4            -9999          -9999.0            -6.66            -9999   \n",
       "\n",
       "   DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  \\\n",
       "0            -66.6            -6.66             -666            -66.6   \n",
       "1            -66.6            -6.66             -666            -66.6   \n",
       "2            -66.6            -6.66             -666            -66.6   \n",
       "3          -9999.0            -6.66            -9999          -9999.0   \n",
       "4          -9999.0            -6.66            -9999          -9999.0   \n",
       "\n",
       "   MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  \\\n",
       "0             0.02              0.0             0.02              0.0   \n",
       "1             0.04              0.0             0.04              0.0   \n",
       "2             0.05              0.0             0.05              0.0   \n",
       "3             0.07              0.0             0.07              0.0   \n",
       "4             0.09              0.0             0.09              0.0   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  \\\n",
       "0                       98                       43                       12   \n",
       "1                       99                       44                       12   \n",
       "2                      100                       44                       12   \n",
       "3                      101                       45                       12   \n",
       "4                      102                       45                       12   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE100HI  DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "0                        3                    -9999                        0   \n",
       "1                        3                    -9999                        0   \n",
       "2                        3                    -9999                        0   \n",
       "3                        3                        0                        0   \n",
       "4                        3                        0                        0   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  \\\n",
       "0                    -9999                    -9999                    -9999   \n",
       "1                    -9999                    -9999                    -9999   \n",
       "2                    -9999                    -9999                    -9999   \n",
       "3                        0                        0                        0   \n",
       "4                        0                        0                        0   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE010TI  DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "0                    -9999                        0                    -9999   \n",
       "1                    -9999                        0                    -9999   \n",
       "2                    -9999                        0                    -9999   \n",
       "3                        0                        0                        0   \n",
       "4                        0                        0                        0   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE050TI  \n",
       "0                    -9999  \n",
       "1                    -9999  \n",
       "2                    -9999  \n",
       "3                        0  \n",
       "4                        0  "
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "climate_precip = pd.read_csv(\"climate_precip.csv\")\n",
    "climate_precip.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(151110, 29)"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "climate_precip.shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## merge()\n",
    "\n",
    "In this section, you will learn about `merge()` functionality in Pandas.\n",
    "\n",
    "### Inner Join\n",
    "\n",
    "Here, you will use a plain `merge()` call to do an inner join and learn how this can result in a smaller, more focused dataset. First, you will create a new DataFrame object that contains the precipitation data from one station."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1460</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100101</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>137</td>\n",
       "      <td>81</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1461</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100102</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>138</td>\n",
       "      <td>83</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1462</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100103</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>139</td>\n",
       "      <td>84</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1463</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100104</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>140</td>\n",
       "      <td>85</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1464</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100105</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.17</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.46</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>141</td>\n",
       "      <td>86</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                STATION            STATION_NAME      DATE  DLY-PRCP-25PCTL  \\\n",
       "1460  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100101             0.04   \n",
       "1461  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100102             0.05   \n",
       "1462  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100103             0.05   \n",
       "1463  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100104             0.05   \n",
       "1464  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100105             0.05   \n",
       "\n",
       "      DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "1460             -666            -66.6             0.16             -666   \n",
       "1461             -666            -66.6             0.16             -666   \n",
       "1462             -666            -66.6             0.16             -666   \n",
       "1463             -666            -66.6             0.16             -666   \n",
       "1464             -666            -66.6             0.17             -666   \n",
       "\n",
       "      DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  \\\n",
       "1460            -66.6             0.44             -666            -66.6   \n",
       "1461            -66.6             0.44             -666            -66.6   \n",
       "1462            -66.6             0.45             -666            -66.6   \n",
       "1463            -66.6             0.45             -666            -66.6   \n",
       "1464            -66.6             0.46             -666            -66.6   \n",
       "\n",
       "      MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  \\\n",
       "1460             0.04              0.0             0.04              0.0   \n",
       "1461             0.08              0.0             0.08              0.0   \n",
       "1462             0.12              0.0             0.12              0.0   \n",
       "1463             0.16              0.0             0.16              0.0   \n",
       "1464             0.21              0.0             0.21              0.0   \n",
       "\n",
       "      DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  \\\n",
       "1460                      137                       81   \n",
       "1461                      138                       83   \n",
       "1462                      139                       84   \n",
       "1463                      140                       85   \n",
       "1464                      141                       86   \n",
       "\n",
       "      DLY-PRCP-PCTALL-GE050HI  DLY-PRCP-PCTALL-GE100HI  \\\n",
       "1460                       31                       11   \n",
       "1461                       31                       11   \n",
       "1462                       31                       11   \n",
       "1463                       32                       11   \n",
       "1464                       32                       11   \n",
       "\n",
       "      DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "1460                        4                        0   \n",
       "1461                        4                        0   \n",
       "1462                        4                        0   \n",
       "1463                        4                        0   \n",
       "1464                        4                        0   \n",
       "\n",
       "      DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  \\\n",
       "1460                        3                        3   \n",
       "1461                        3                        3   \n",
       "1462                        3                        3   \n",
       "1463                        3                        2   \n",
       "1464                        3                        2   \n",
       "\n",
       "      DLY-SNOW-PCTALL-GE001TI  DLY-SNOW-PCTALL-GE010TI  \\\n",
       "1460                        9                        6   \n",
       "1461                       10                        6   \n",
       "1462                       10                        6   \n",
       "1463                       10                        6   \n",
       "1464                       10                        6   \n",
       "\n",
       "      DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "1460                        0                    -9999   \n",
       "1461                        0                    -9999   \n",
       "1462                        0                    -9999   \n",
       "1463                        0                    -9999   \n",
       "1464                        0                    -9999   \n",
       "\n",
       "      DLY-SNOW-PCTALL-GE050TI  \n",
       "1460                    -9999  \n",
       "1461                    -9999  \n",
       "1462                    -9999  \n",
       "1463                    -9999  \n",
       "1464                    -9999  "
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "precip_one_station = climate_precip.query(\"STATION == 'GHCND:USC00045721'\")\n",
    "precip_one_station.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(365, 29)"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "precip_one_station.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100101</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>137</td>\n",
       "      <td>81</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100102</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>138</td>\n",
       "      <td>83</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100103</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>139</td>\n",
       "      <td>84</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100104</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>140</td>\n",
       "      <td>85</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100105</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.17</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.46</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>141</td>\n",
       "      <td>86</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION            STATION_NAME      DATE  DLY-PRCP-25PCTL  \\\n",
       "0  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100101             0.04   \n",
       "1  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100102             0.05   \n",
       "2  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100103             0.05   \n",
       "3  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100104             0.05   \n",
       "4  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100105             0.05   \n",
       "\n",
       "   DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "0             -666            -66.6             0.16             -666   \n",
       "1             -666            -66.6             0.16             -666   \n",
       "2             -666            -66.6             0.16             -666   \n",
       "3             -666            -66.6             0.16             -666   \n",
       "4             -666            -66.6             0.17             -666   \n",
       "\n",
       "   DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  \\\n",
       "0            -66.6             0.44             -666            -66.6   \n",
       "1            -66.6             0.44             -666            -66.6   \n",
       "2            -66.6             0.45             -666            -66.6   \n",
       "3            -66.6             0.45             -666            -66.6   \n",
       "4            -66.6             0.46             -666            -66.6   \n",
       "\n",
       "   MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  \\\n",
       "0             0.04              0.0             0.04              0.0   \n",
       "1             0.08              0.0             0.08              0.0   \n",
       "2             0.12              0.0             0.12              0.0   \n",
       "3             0.16              0.0             0.16              0.0   \n",
       "4             0.21              0.0             0.21              0.0   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  \\\n",
       "0                      137                       81                       31   \n",
       "1                      138                       83                       31   \n",
       "2                      139                       84                       31   \n",
       "3                      140                       85                       32   \n",
       "4                      141                       86                       32   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE100HI  DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "0                       11                        4                        0   \n",
       "1                       11                        4                        0   \n",
       "2                       11                        4                        0   \n",
       "3                       11                        4                        0   \n",
       "4                       11                        4                        0   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  \\\n",
       "0                        3                        3                        9   \n",
       "1                        3                        3                       10   \n",
       "2                        3                        3                       10   \n",
       "3                        3                        2                       10   \n",
       "4                        3                        2                       10   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE010TI  DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "0                        6                        0                    -9999   \n",
       "1                        6                        0                    -9999   \n",
       "2                        6                        0                    -9999   \n",
       "3                        6                        0                    -9999   \n",
       "4                        6                        0                    -9999   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE050TI ELEVATION LATITUDE  LONGITUDE  DLY-CLDD-BASE45  \\\n",
       "0                    -9999    1325.9  34.9436  -115.5469                3   \n",
       "1                    -9999    1325.9  34.9436  -115.5469                3   \n",
       "2                    -9999    1325.9  34.9436  -115.5469                3   \n",
       "3                    -9999    1325.9  34.9436  -115.5469                3   \n",
       "4                    -9999    1325.9  34.9436  -115.5469                3   \n",
       "\n",
       "   DLY-CLDD-BASE50  DLY-CLDD-BASE55  DLY-CLDD-BASE57  DLY-CLDD-BASE60  \\\n",
       "0                1            -7777            -7777            -7777   \n",
       "1                1            -7777            -7777            -7777   \n",
       "2                1            -7777            -7777            -7777   \n",
       "3                1            -7777            -7777            -7777   \n",
       "4                1            -7777            -7777            -7777   \n",
       "\n",
       "   DLY-CLDD-NORMAL  DLY-CLDD-BASE70  DLY-CLDD-BASE72  DLY-HTDD-BASE40  \\\n",
       "0                0                0                0                1   \n",
       "1                0                0                0                1   \n",
       "2                0                0                0                1   \n",
       "3                0                0                0                1   \n",
       "4                0                0                0                1   \n",
       "\n",
       "   DLY-HTDD-BASE45  DLY-HTDD-BASE50  DLY-HTDD-BASE55  DLY-HTDD-BASE57  \\\n",
       "0                3                6               10               12   \n",
       "1                3                6               10               11   \n",
       "2                2                5                9               11   \n",
       "3                2                5                9               11   \n",
       "4                2                5                9               11   \n",
       "\n",
       "   DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \n",
       "0               14               19  \n",
       "1               14               19  \n",
       "2               14               19  \n",
       "3               14               19  \n",
       "4               14               19  "
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "inner_merged = pd.merge(precip_one_station, climate_temp)\n",
    "inner_merged.head()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "How many rows do you think this merged DataFrame has?"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(365, 47)"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "inner_merged.shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "You get 365 rows because any non-matching rows are discarded in an inner join, which is the default merge method for a `merge()` call, and `precip_one_station` had only 365 rows.\n",
    "\n",
    "What if you want to merge both full datasets, but specify which columns to join on? In this case, you will use the `on` parameter:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME_x</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "      <th>STATION_NAME_y</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100101</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>98</td>\n",
       "      <td>43</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100102</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>99</td>\n",
       "      <td>44</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100103</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>100</td>\n",
       "      <td>44</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100104</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>101</td>\n",
       "      <td>45</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100105</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>102</td>\n",
       "      <td>45</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION          STATION_NAME_x ELEVATION  LATITUDE   LONGITUDE  \\\n",
       "0  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "1  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "2  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "3  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "4  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "\n",
       "       DATE  DLY-CLDD-BASE45  DLY-CLDD-BASE50  DLY-CLDD-BASE55  \\\n",
       "0  20100101                6                2            -7777   \n",
       "1  20100102                6                2                1   \n",
       "2  20100103                6                2                1   \n",
       "3  20100104                6                2                1   \n",
       "4  20100105                6                2                1   \n",
       "\n",
       "   DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  DLY-CLDD-BASE70  \\\n",
       "0            -7777            -7777                0                0   \n",
       "1            -7777            -7777                0                0   \n",
       "2            -7777            -7777                0                0   \n",
       "3            -7777            -7777                0                0   \n",
       "4            -7777            -7777                0                0   \n",
       "\n",
       "   DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  DLY-HTDD-BASE50  \\\n",
       "0                0            -7777                1                2   \n",
       "1                0            -7777                1                2   \n",
       "2                0            -7777                1                2   \n",
       "3                0            -7777                1                2   \n",
       "4                0            -7777            -7777                2   \n",
       "\n",
       "   DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \\\n",
       "0                6                7               10               15   \n",
       "1                6                7               10               15   \n",
       "2                5                7               10               15   \n",
       "3                5                7               10               15   \n",
       "4                5                7               10               15   \n",
       "\n",
       "           STATION_NAME_y  DLY-PRCP-25PCTL  DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  \\\n",
       "0  TWENTYNINE PALMS CA US            -6.66             -666            -66.6   \n",
       "1  TWENTYNINE PALMS CA US            -6.66             -666            -66.6   \n",
       "2  TWENTYNINE PALMS CA US            -6.66             -666            -66.6   \n",
       "3  TWENTYNINE PALMS CA US            -6.66            -9999          -9999.0   \n",
       "4  TWENTYNINE PALMS CA US            -6.66            -9999          -9999.0   \n",
       "\n",
       "   DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  \\\n",
       "0            -6.66             -666            -66.6            -6.66   \n",
       "1            -6.66             -666            -66.6            -6.66   \n",
       "2            -6.66             -666            -66.6            -6.66   \n",
       "3            -6.66            -9999          -9999.0            -6.66   \n",
       "4            -6.66            -9999          -9999.0            -6.66   \n",
       "\n",
       "   DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  \\\n",
       "0             -666            -66.6             0.02              0.0   \n",
       "1             -666            -66.6             0.04              0.0   \n",
       "2             -666            -66.6             0.05              0.0   \n",
       "3            -9999          -9999.0             0.07              0.0   \n",
       "4            -9999          -9999.0             0.09              0.0   \n",
       "\n",
       "   YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  DLY-PRCP-PCTALL-GE001HI  \\\n",
       "0             0.02              0.0                       98   \n",
       "1             0.04              0.0                       99   \n",
       "2             0.05              0.0                      100   \n",
       "3             0.07              0.0                      101   \n",
       "4             0.09              0.0                      102   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  DLY-PRCP-PCTALL-GE100HI  \\\n",
       "0                       43                       12                        3   \n",
       "1                       44                       12                        3   \n",
       "2                       44                       12                        3   \n",
       "3                       45                       12                        3   \n",
       "4                       45                       12                        3   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  DLY-SNWD-PCTALL-GE003WI  \\\n",
       "0                    -9999                        0                    -9999   \n",
       "1                    -9999                        0                    -9999   \n",
       "2                    -9999                        0                    -9999   \n",
       "3                        0                        0                        0   \n",
       "4                        0                        0                        0   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  DLY-SNOW-PCTALL-GE010TI  \\\n",
       "0                    -9999                    -9999                    -9999   \n",
       "1                    -9999                    -9999                    -9999   \n",
       "2                    -9999                    -9999                    -9999   \n",
       "3                        0                        0                        0   \n",
       "4                        0                        0                        0   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  DLY-SNOW-PCTALL-GE050TI  \n",
       "0                        0                    -9999                    -9999  \n",
       "1                        0                    -9999                    -9999  \n",
       "2                        0                    -9999                    -9999  \n",
       "3                        0                        0                        0  \n",
       "4                        0                        0                        0  "
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "inner_merged_total = pd.merge(\n",
    "    climate_temp, climate_precip, on=[\"STATION\", \"DATE\"]\n",
    ")\n",
    "inner_merged_total.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(123005, 48)"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "inner_merged_total.shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "You can specify a single _key column_ with a string, or multiple key columns with a list, as in the above example. This results in a DataFrame with 123005 rows and 48 columns. \n",
    "\n",
    "Why 48 columns instead of 47? Because you specified the keys columns to join on, Pandas doesn't try to merge all mergeable columns. This can result in \"duplicate\" column names, which may or may not have different values. \"Duplicate\" is in quotes because the columns will actually have new names, by default they are appended with `_x` and `_y`. You can also use the `suffixes` parameter to control what is appended to the column names.\n",
    "\n",
    "### Outer Join\n",
    "With the outer join, you will retain rows that don't have matches as well. For this example, you will use the smaller precipitation DataFrame `precip_one_station` with the full `climate_temp` DataFrame and join with `STATION` and `DATE` columns as the key columns. Take a second and think about how many rows you expect the new DataFrame to have."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME_x</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "      <th>STATION_NAME_y</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100101</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>137.0</td>\n",
       "      <td>81.0</td>\n",
       "      <td>31.0</td>\n",
       "      <td>11.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>9.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100102</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>138.0</td>\n",
       "      <td>83.0</td>\n",
       "      <td>31.0</td>\n",
       "      <td>11.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>10.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100103</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>139.0</td>\n",
       "      <td>84.0</td>\n",
       "      <td>31.0</td>\n",
       "      <td>11.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>10.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100104</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>140.0</td>\n",
       "      <td>85.0</td>\n",
       "      <td>32.0</td>\n",
       "      <td>11.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>10.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100105</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.17</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.46</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>141.0</td>\n",
       "      <td>86.0</td>\n",
       "      <td>32.0</td>\n",
       "      <td>11.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>10.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION          STATION_NAME_x      DATE  DLY-PRCP-25PCTL  \\\n",
       "0  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100101             0.04   \n",
       "1  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100102             0.05   \n",
       "2  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100103             0.05   \n",
       "3  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100104             0.05   \n",
       "4  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100105             0.05   \n",
       "\n",
       "   DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "0           -666.0            -66.6             0.16           -666.0   \n",
       "1           -666.0            -66.6             0.16           -666.0   \n",
       "2           -666.0            -66.6             0.16           -666.0   \n",
       "3           -666.0            -66.6             0.16           -666.0   \n",
       "4           -666.0            -66.6             0.17           -666.0   \n",
       "\n",
       "   DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  \\\n",
       "0            -66.6             0.44           -666.0            -66.6   \n",
       "1            -66.6             0.44           -666.0            -66.6   \n",
       "2            -66.6             0.45           -666.0            -66.6   \n",
       "3            -66.6             0.45           -666.0            -66.6   \n",
       "4            -66.6             0.46           -666.0            -66.6   \n",
       "\n",
       "   MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  \\\n",
       "0             0.04              0.0             0.04              0.0   \n",
       "1             0.08              0.0             0.08              0.0   \n",
       "2             0.12              0.0             0.12              0.0   \n",
       "3             0.16              0.0             0.16              0.0   \n",
       "4             0.21              0.0             0.21              0.0   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  \\\n",
       "0                    137.0                     81.0                     31.0   \n",
       "1                    138.0                     83.0                     31.0   \n",
       "2                    139.0                     84.0                     31.0   \n",
       "3                    140.0                     85.0                     32.0   \n",
       "4                    141.0                     86.0                     32.0   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE100HI  DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "0                     11.0                      4.0                      0.0   \n",
       "1                     11.0                      4.0                      0.0   \n",
       "2                     11.0                      4.0                      0.0   \n",
       "3                     11.0                      4.0                      0.0   \n",
       "4                     11.0                      4.0                      0.0   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  \\\n",
       "0                      3.0                      3.0                      9.0   \n",
       "1                      3.0                      3.0                     10.0   \n",
       "2                      3.0                      3.0                     10.0   \n",
       "3                      3.0                      2.0                     10.0   \n",
       "4                      3.0                      2.0                     10.0   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE010TI  DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "0                      6.0                      0.0                  -9999.0   \n",
       "1                      6.0                      0.0                  -9999.0   \n",
       "2                      6.0                      0.0                  -9999.0   \n",
       "3                      6.0                      0.0                  -9999.0   \n",
       "4                      6.0                      0.0                  -9999.0   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE050TI          STATION_NAME_y ELEVATION LATITUDE  \\\n",
       "0                  -9999.0  MITCHELL CAVERNS CA US    1325.9  34.9436   \n",
       "1                  -9999.0  MITCHELL CAVERNS CA US    1325.9  34.9436   \n",
       "2                  -9999.0  MITCHELL CAVERNS CA US    1325.9  34.9436   \n",
       "3                  -9999.0  MITCHELL CAVERNS CA US    1325.9  34.9436   \n",
       "4                  -9999.0  MITCHELL CAVERNS CA US    1325.9  34.9436   \n",
       "\n",
       "   LONGITUDE  DLY-CLDD-BASE45  DLY-CLDD-BASE50  DLY-CLDD-BASE55  \\\n",
       "0  -115.5469                3                1            -7777   \n",
       "1  -115.5469                3                1            -7777   \n",
       "2  -115.5469                3                1            -7777   \n",
       "3  -115.5469                3                1            -7777   \n",
       "4  -115.5469                3                1            -7777   \n",
       "\n",
       "   DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  DLY-CLDD-BASE70  \\\n",
       "0            -7777            -7777                0                0   \n",
       "1            -7777            -7777                0                0   \n",
       "2            -7777            -7777                0                0   \n",
       "3            -7777            -7777                0                0   \n",
       "4            -7777            -7777                0                0   \n",
       "\n",
       "   DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  DLY-HTDD-BASE50  \\\n",
       "0                0                1                3                6   \n",
       "1                0                1                3                6   \n",
       "2                0                1                2                5   \n",
       "3                0                1                2                5   \n",
       "4                0                1                2                5   \n",
       "\n",
       "   DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \n",
       "0               10               12               14               19  \n",
       "1               10               11               14               19  \n",
       "2                9               11               14               19  \n",
       "3                9               11               14               19  \n",
       "4                9               11               14               19  "
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "outer_merged = pd.merge(\n",
    "    precip_one_station, climate_temp, how=\"outer\", on=[\"STATION\", \"DATE\"]\n",
    ")\n",
    "outer_merged.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(127020, 48)"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "outer_merged.shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "If you remember from when you checked the `.shape` attribute of `climate_temp`, you'll see that the number of rows in `outer_merged` matches that. With an outer join, you can expect to have the same number of rows as the larger DataFrame, since none are lost like they are in an inner join. \n",
    "\n",
    "### Left Join\n",
    "Also known as a left outer join. In this join, you will retain rows that don't have matches only on the left (or first) DataFrame to be merged."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME_x</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "      <th>STATION_NAME_y</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100101</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100102</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100103</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100104</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100105</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION          STATION_NAME_x ELEVATION  LATITUDE   LONGITUDE  \\\n",
       "0  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "1  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "2  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "3  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "4  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "\n",
       "       DATE  DLY-CLDD-BASE45  DLY-CLDD-BASE50  DLY-CLDD-BASE55  \\\n",
       "0  20100101                6                2            -7777   \n",
       "1  20100102                6                2                1   \n",
       "2  20100103                6                2                1   \n",
       "3  20100104                6                2                1   \n",
       "4  20100105                6                2                1   \n",
       "\n",
       "   DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  DLY-CLDD-BASE70  \\\n",
       "0            -7777            -7777                0                0   \n",
       "1            -7777            -7777                0                0   \n",
       "2            -7777            -7777                0                0   \n",
       "3            -7777            -7777                0                0   \n",
       "4            -7777            -7777                0                0   \n",
       "\n",
       "   DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  DLY-HTDD-BASE50  \\\n",
       "0                0            -7777                1                2   \n",
       "1                0            -7777                1                2   \n",
       "2                0            -7777                1                2   \n",
       "3                0            -7777                1                2   \n",
       "4                0            -7777            -7777                2   \n",
       "\n",
       "   DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \\\n",
       "0                6                7               10               15   \n",
       "1                6                7               10               15   \n",
       "2                5                7               10               15   \n",
       "3                5                7               10               15   \n",
       "4                5                7               10               15   \n",
       "\n",
       "  STATION_NAME_y  DLY-PRCP-25PCTL  DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  \\\n",
       "0            NaN              NaN              NaN              NaN   \n",
       "1            NaN              NaN              NaN              NaN   \n",
       "2            NaN              NaN              NaN              NaN   \n",
       "3            NaN              NaN              NaN              NaN   \n",
       "4            NaN              NaN              NaN              NaN   \n",
       "\n",
       "   DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  \\\n",
       "0              NaN              NaN              NaN              NaN   \n",
       "1              NaN              NaN              NaN              NaN   \n",
       "2              NaN              NaN              NaN              NaN   \n",
       "3              NaN              NaN              NaN              NaN   \n",
       "4              NaN              NaN              NaN              NaN   \n",
       "\n",
       "   DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  \\\n",
       "0              NaN              NaN              NaN              NaN   \n",
       "1              NaN              NaN              NaN              NaN   \n",
       "2              NaN              NaN              NaN              NaN   \n",
       "3              NaN              NaN              NaN              NaN   \n",
       "4              NaN              NaN              NaN              NaN   \n",
       "\n",
       "   YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  DLY-PRCP-PCTALL-GE001HI  \\\n",
       "0              NaN              NaN                      NaN   \n",
       "1              NaN              NaN                      NaN   \n",
       "2              NaN              NaN                      NaN   \n",
       "3              NaN              NaN                      NaN   \n",
       "4              NaN              NaN                      NaN   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  DLY-PRCP-PCTALL-GE100HI  \\\n",
       "0                      NaN                      NaN                      NaN   \n",
       "1                      NaN                      NaN                      NaN   \n",
       "2                      NaN                      NaN                      NaN   \n",
       "3                      NaN                      NaN                      NaN   \n",
       "4                      NaN                      NaN                      NaN   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  DLY-SNWD-PCTALL-GE003WI  \\\n",
       "0                      NaN                      NaN                      NaN   \n",
       "1                      NaN                      NaN                      NaN   \n",
       "2                      NaN                      NaN                      NaN   \n",
       "3                      NaN                      NaN                      NaN   \n",
       "4                      NaN                      NaN                      NaN   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  DLY-SNOW-PCTALL-GE010TI  \\\n",
       "0                      NaN                      NaN                      NaN   \n",
       "1                      NaN                      NaN                      NaN   \n",
       "2                      NaN                      NaN                      NaN   \n",
       "3                      NaN                      NaN                      NaN   \n",
       "4                      NaN                      NaN                      NaN   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  DLY-SNOW-PCTALL-GE050TI  \n",
       "0                      NaN                      NaN                      NaN  \n",
       "1                      NaN                      NaN                      NaN  \n",
       "2                      NaN                      NaN                      NaN  \n",
       "3                      NaN                      NaN                      NaN  \n",
       "4                      NaN                      NaN                      NaN  "
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "left_merged = pd.merge(\n",
    "    climate_temp, precip_one_station, how=\"left\", on=[\"STATION\", \"DATE\"]\n",
    ")\n",
    "left_merged.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(127020, 48)"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "left_merged.shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Here, you see that the number of rows in the resulting DataFrame matches that of the rows in the `climate_temp` DataFrame. What if we switched the positions of the two DataFrames that we are merging?"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME_x</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "      <th>STATION_NAME_y</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100101</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>137</td>\n",
       "      <td>81</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100102</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>138</td>\n",
       "      <td>83</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100103</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>139</td>\n",
       "      <td>84</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100104</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>140</td>\n",
       "      <td>85</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100105</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.17</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.46</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>141</td>\n",
       "      <td>86</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION          STATION_NAME_x      DATE  DLY-PRCP-25PCTL  \\\n",
       "0  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100101             0.04   \n",
       "1  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100102             0.05   \n",
       "2  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100103             0.05   \n",
       "3  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100104             0.05   \n",
       "4  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100105             0.05   \n",
       "\n",
       "   DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "0             -666            -66.6             0.16             -666   \n",
       "1             -666            -66.6             0.16             -666   \n",
       "2             -666            -66.6             0.16             -666   \n",
       "3             -666            -66.6             0.16             -666   \n",
       "4             -666            -66.6             0.17             -666   \n",
       "\n",
       "   DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  \\\n",
       "0            -66.6             0.44             -666            -66.6   \n",
       "1            -66.6             0.44             -666            -66.6   \n",
       "2            -66.6             0.45             -666            -66.6   \n",
       "3            -66.6             0.45             -666            -66.6   \n",
       "4            -66.6             0.46             -666            -66.6   \n",
       "\n",
       "   MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  \\\n",
       "0             0.04              0.0             0.04              0.0   \n",
       "1             0.08              0.0             0.08              0.0   \n",
       "2             0.12              0.0             0.12              0.0   \n",
       "3             0.16              0.0             0.16              0.0   \n",
       "4             0.21              0.0             0.21              0.0   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  \\\n",
       "0                      137                       81                       31   \n",
       "1                      138                       83                       31   \n",
       "2                      139                       84                       31   \n",
       "3                      140                       85                       32   \n",
       "4                      141                       86                       32   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE100HI  DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "0                       11                        4                        0   \n",
       "1                       11                        4                        0   \n",
       "2                       11                        4                        0   \n",
       "3                       11                        4                        0   \n",
       "4                       11                        4                        0   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  \\\n",
       "0                        3                        3                        9   \n",
       "1                        3                        3                       10   \n",
       "2                        3                        3                       10   \n",
       "3                        3                        2                       10   \n",
       "4                        3                        2                       10   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE010TI  DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "0                        6                        0                    -9999   \n",
       "1                        6                        0                    -9999   \n",
       "2                        6                        0                    -9999   \n",
       "3                        6                        0                    -9999   \n",
       "4                        6                        0                    -9999   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE050TI          STATION_NAME_y ELEVATION LATITUDE  \\\n",
       "0                    -9999  MITCHELL CAVERNS CA US    1325.9  34.9436   \n",
       "1                    -9999  MITCHELL CAVERNS CA US    1325.9  34.9436   \n",
       "2                    -9999  MITCHELL CAVERNS CA US    1325.9  34.9436   \n",
       "3                    -9999  MITCHELL CAVERNS CA US    1325.9  34.9436   \n",
       "4                    -9999  MITCHELL CAVERNS CA US    1325.9  34.9436   \n",
       "\n",
       "   LONGITUDE  DLY-CLDD-BASE45  DLY-CLDD-BASE50  DLY-CLDD-BASE55  \\\n",
       "0  -115.5469                3                1            -7777   \n",
       "1  -115.5469                3                1            -7777   \n",
       "2  -115.5469                3                1            -7777   \n",
       "3  -115.5469                3                1            -7777   \n",
       "4  -115.5469                3                1            -7777   \n",
       "\n",
       "   DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  DLY-CLDD-BASE70  \\\n",
       "0            -7777            -7777                0                0   \n",
       "1            -7777            -7777                0                0   \n",
       "2            -7777            -7777                0                0   \n",
       "3            -7777            -7777                0                0   \n",
       "4            -7777            -7777                0                0   \n",
       "\n",
       "   DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  DLY-HTDD-BASE50  \\\n",
       "0                0                1                3                6   \n",
       "1                0                1                3                6   \n",
       "2                0                1                2                5   \n",
       "3                0                1                2                5   \n",
       "4                0                1                2                5   \n",
       "\n",
       "   DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \n",
       "0               10               12               14               19  \n",
       "1               10               11               14               19  \n",
       "2                9               11               14               19  \n",
       "3                9               11               14               19  \n",
       "4                9               11               14               19  "
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "left_merged_reversed = pd.merge(\n",
    "    precip_one_station, climate_temp, how=\"left\", on=[\"STATION\", \"DATE\"]\n",
    ")\n",
    "left_merged_reversed.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(365, 48)"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "left_merged_reversed.shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Right Join\n",
    "This works the same as the left join, however non-matching rows are only retained in the _right_ DataFrame. In the next example, you will recreate the `left_merged` DataFrame but with a right join."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME_x</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "      <th>STATION_NAME_y</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20100101</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20100102</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20100103</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20100104</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20100105</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION STATION_NAME_x      DATE  DLY-PRCP-25PCTL  \\\n",
       "0  GHCND:USC00049099            NaN  20100101              NaN   \n",
       "1  GHCND:USC00049099            NaN  20100102              NaN   \n",
       "2  GHCND:USC00049099            NaN  20100103              NaN   \n",
       "3  GHCND:USC00049099            NaN  20100104              NaN   \n",
       "4  GHCND:USC00049099            NaN  20100105              NaN   \n",
       "\n",
       "   DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "0              NaN              NaN              NaN              NaN   \n",
       "1              NaN              NaN              NaN              NaN   \n",
       "2              NaN              NaN              NaN              NaN   \n",
       "3              NaN              NaN              NaN              NaN   \n",
       "4              NaN              NaN              NaN              NaN   \n",
       "\n",
       "   DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  \\\n",
       "0              NaN              NaN              NaN              NaN   \n",
       "1              NaN              NaN              NaN              NaN   \n",
       "2              NaN              NaN              NaN              NaN   \n",
       "3              NaN              NaN              NaN              NaN   \n",
       "4              NaN              NaN              NaN              NaN   \n",
       "\n",
       "   MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  \\\n",
       "0              NaN              NaN              NaN              NaN   \n",
       "1              NaN              NaN              NaN              NaN   \n",
       "2              NaN              NaN              NaN              NaN   \n",
       "3              NaN              NaN              NaN              NaN   \n",
       "4              NaN              NaN              NaN              NaN   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  \\\n",
       "0                      NaN                      NaN                      NaN   \n",
       "1                      NaN                      NaN                      NaN   \n",
       "2                      NaN                      NaN                      NaN   \n",
       "3                      NaN                      NaN                      NaN   \n",
       "4                      NaN                      NaN                      NaN   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE100HI  DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "0                      NaN                      NaN                      NaN   \n",
       "1                      NaN                      NaN                      NaN   \n",
       "2                      NaN                      NaN                      NaN   \n",
       "3                      NaN                      NaN                      NaN   \n",
       "4                      NaN                      NaN                      NaN   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  \\\n",
       "0                      NaN                      NaN                      NaN   \n",
       "1                      NaN                      NaN                      NaN   \n",
       "2                      NaN                      NaN                      NaN   \n",
       "3                      NaN                      NaN                      NaN   \n",
       "4                      NaN                      NaN                      NaN   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE010TI  DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "0                      NaN                      NaN                      NaN   \n",
       "1                      NaN                      NaN                      NaN   \n",
       "2                      NaN                      NaN                      NaN   \n",
       "3                      NaN                      NaN                      NaN   \n",
       "4                      NaN                      NaN                      NaN   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE050TI          STATION_NAME_y ELEVATION  LATITUDE  \\\n",
       "0                      NaN  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "1                      NaN  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "2                      NaN  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "3                      NaN  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "4                      NaN  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "\n",
       "    LONGITUDE  DLY-CLDD-BASE45  DLY-CLDD-BASE50  DLY-CLDD-BASE55  \\\n",
       "0  -116.03694                6                2            -7777   \n",
       "1  -116.03694                6                2                1   \n",
       "2  -116.03694                6                2                1   \n",
       "3  -116.03694                6                2                1   \n",
       "4  -116.03694                6                2                1   \n",
       "\n",
       "   DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  DLY-CLDD-BASE70  \\\n",
       "0            -7777            -7777                0                0   \n",
       "1            -7777            -7777                0                0   \n",
       "2            -7777            -7777                0                0   \n",
       "3            -7777            -7777                0                0   \n",
       "4            -7777            -7777                0                0   \n",
       "\n",
       "   DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  DLY-HTDD-BASE50  \\\n",
       "0                0            -7777                1                2   \n",
       "1                0            -7777                1                2   \n",
       "2                0            -7777                1                2   \n",
       "3                0            -7777                1                2   \n",
       "4                0            -7777            -7777                2   \n",
       "\n",
       "   DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \n",
       "0                6                7               10               15  \n",
       "1                6                7               10               15  \n",
       "2                5                7               10               15  \n",
       "3                5                7               10               15  \n",
       "4                5                7               10               15  "
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "right_merged = pd.merge(\n",
    "    precip_one_station, climate_temp, how=\"right\", on=[\"STATION\", \"DATE\"]\n",
    ")\n",
    "right_merged.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(127020, 48)"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "right_merged.shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Here, you simply flipped the positions of the input DataFrames and specified a right join. When you inspect `right_merged`, you might notice that it's not exactly the same as `left_merged`. The only difference between the two is the order of the columns: the first input's columns will always be the first in the newly formed DataFrame.\n",
    "\n",
    "## .join()\n",
    "`.join()` uses `merge()` under the hood, but provides a much more simplified interface to `merge()` and by default joins on indexes. Here is an introductory example using the `lsuffix` and `rsuffix` parameters to handle overlapping column names."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION_left</th>\n",
       "      <th>STATION_NAME_left</th>\n",
       "      <th>DATE_left</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "      <th>STATION_right</th>\n",
       "      <th>STATION_NAME_right</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DATE_right</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1460</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100101</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>137</td>\n",
       "      <td>81</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>20100101</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1461</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100102</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>138</td>\n",
       "      <td>83</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>20100102</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1462</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100103</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>139</td>\n",
       "      <td>84</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>20100103</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1463</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100104</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>140</td>\n",
       "      <td>85</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>20100104</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1464</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100105</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.17</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.46</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>141</td>\n",
       "      <td>86</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>20100105</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1820</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20101227</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.15</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>1.14</td>\n",
       "      <td>0.3</td>\n",
       "      <td>11.29</td>\n",
       "      <td>1.5</td>\n",
       "      <td>132</td>\n",
       "      <td>76</td>\n",
       "      <td>30</td>\n",
       "      <td>12</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>20101227</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1821</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20101228</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.15</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.43</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>1.19</td>\n",
       "      <td>0.3</td>\n",
       "      <td>11.34</td>\n",
       "      <td>1.5</td>\n",
       "      <td>133</td>\n",
       "      <td>77</td>\n",
       "      <td>30</td>\n",
       "      <td>12</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>20101228</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1822</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20101229</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.15</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.43</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>1.24</td>\n",
       "      <td>0.3</td>\n",
       "      <td>11.39</td>\n",
       "      <td>1.5</td>\n",
       "      <td>133</td>\n",
       "      <td>78</td>\n",
       "      <td>30</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>20101229</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1823</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20101230</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.15</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.43</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>1.30</td>\n",
       "      <td>0.3</td>\n",
       "      <td>11.45</td>\n",
       "      <td>1.5</td>\n",
       "      <td>134</td>\n",
       "      <td>79</td>\n",
       "      <td>30</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>20101230</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1824</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20101231</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.15</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>1.35</td>\n",
       "      <td>0.3</td>\n",
       "      <td>11.50</td>\n",
       "      <td>1.5</td>\n",
       "      <td>135</td>\n",
       "      <td>80</td>\n",
       "      <td>30</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>1325.9</td>\n",
       "      <td>34.9436</td>\n",
       "      <td>-115.5469</td>\n",
       "      <td>20101231</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>365 rows × 50 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "           STATION_left       STATION_NAME_left  DATE_left  DLY-PRCP-25PCTL  \\\n",
       "1460  GHCND:USC00045721  MITCHELL CAVERNS CA US   20100101             0.04   \n",
       "1461  GHCND:USC00045721  MITCHELL CAVERNS CA US   20100102             0.05   \n",
       "1462  GHCND:USC00045721  MITCHELL CAVERNS CA US   20100103             0.05   \n",
       "1463  GHCND:USC00045721  MITCHELL CAVERNS CA US   20100104             0.05   \n",
       "1464  GHCND:USC00045721  MITCHELL CAVERNS CA US   20100105             0.05   \n",
       "...                 ...                     ...        ...              ...   \n",
       "1820  GHCND:USC00045721  MITCHELL CAVERNS CA US   20101227             0.04   \n",
       "1821  GHCND:USC00045721  MITCHELL CAVERNS CA US   20101228             0.04   \n",
       "1822  GHCND:USC00045721  MITCHELL CAVERNS CA US   20101229             0.04   \n",
       "1823  GHCND:USC00045721  MITCHELL CAVERNS CA US   20101230             0.04   \n",
       "1824  GHCND:USC00045721  MITCHELL CAVERNS CA US   20101231             0.04   \n",
       "\n",
       "      DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "1460             -666            -66.6             0.16             -666   \n",
       "1461             -666            -66.6             0.16             -666   \n",
       "1462             -666            -66.6             0.16             -666   \n",
       "1463             -666            -66.6             0.16             -666   \n",
       "1464             -666            -66.6             0.17             -666   \n",
       "...               ...              ...              ...              ...   \n",
       "1820             -666            -66.6             0.15             -666   \n",
       "1821             -666            -66.6             0.15             -666   \n",
       "1822             -666            -66.6             0.15             -666   \n",
       "1823             -666            -66.6             0.15             -666   \n",
       "1824             -666            -66.6             0.15             -666   \n",
       "\n",
       "      DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  \\\n",
       "1460            -66.6             0.44             -666            -66.6   \n",
       "1461            -66.6             0.44             -666            -66.6   \n",
       "1462            -66.6             0.45             -666            -66.6   \n",
       "1463            -66.6             0.45             -666            -66.6   \n",
       "1464            -66.6             0.46             -666            -66.6   \n",
       "...               ...              ...              ...              ...   \n",
       "1820            -66.6             0.44             -666            -66.6   \n",
       "1821            -66.6             0.43             -666            -66.6   \n",
       "1822            -66.6             0.43             -666            -66.6   \n",
       "1823            -66.6             0.43             -666            -66.6   \n",
       "1824            -66.6             0.44             -666            -66.6   \n",
       "\n",
       "      MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  \\\n",
       "1460             0.04              0.0             0.04              0.0   \n",
       "1461             0.08              0.0             0.08              0.0   \n",
       "1462             0.12              0.0             0.12              0.0   \n",
       "1463             0.16              0.0             0.16              0.0   \n",
       "1464             0.21              0.0             0.21              0.0   \n",
       "...               ...              ...              ...              ...   \n",
       "1820             1.14              0.3            11.29              1.5   \n",
       "1821             1.19              0.3            11.34              1.5   \n",
       "1822             1.24              0.3            11.39              1.5   \n",
       "1823             1.30              0.3            11.45              1.5   \n",
       "1824             1.35              0.3            11.50              1.5   \n",
       "\n",
       "      DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  \\\n",
       "1460                      137                       81   \n",
       "1461                      138                       83   \n",
       "1462                      139                       84   \n",
       "1463                      140                       85   \n",
       "1464                      141                       86   \n",
       "...                       ...                      ...   \n",
       "1820                      132                       76   \n",
       "1821                      133                       77   \n",
       "1822                      133                       78   \n",
       "1823                      134                       79   \n",
       "1824                      135                       80   \n",
       "\n",
       "      DLY-PRCP-PCTALL-GE050HI  DLY-PRCP-PCTALL-GE100HI  \\\n",
       "1460                       31                       11   \n",
       "1461                       31                       11   \n",
       "1462                       31                       11   \n",
       "1463                       32                       11   \n",
       "1464                       32                       11   \n",
       "...                       ...                      ...   \n",
       "1820                       30                       12   \n",
       "1821                       30                       12   \n",
       "1822                       30                       11   \n",
       "1823                       30                       11   \n",
       "1824                       30                       11   \n",
       "\n",
       "      DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "1460                        4                        0   \n",
       "1461                        4                        0   \n",
       "1462                        4                        0   \n",
       "1463                        4                        0   \n",
       "1464                        4                        0   \n",
       "...                       ...                      ...   \n",
       "1820                        4                        0   \n",
       "1821                        4                        0   \n",
       "1822                        4                        0   \n",
       "1823                        4                        0   \n",
       "1824                        4                        0   \n",
       "\n",
       "      DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  \\\n",
       "1460                        3                        3   \n",
       "1461                        3                        3   \n",
       "1462                        3                        3   \n",
       "1463                        3                        2   \n",
       "1464                        3                        2   \n",
       "...                       ...                      ...   \n",
       "1820                        3                        3   \n",
       "1821                        3                        3   \n",
       "1822                        3                        3   \n",
       "1823                        3                        3   \n",
       "1824                        3                        3   \n",
       "\n",
       "      DLY-SNOW-PCTALL-GE001TI  DLY-SNOW-PCTALL-GE010TI  \\\n",
       "1460                        9                        6   \n",
       "1461                       10                        6   \n",
       "1462                       10                        6   \n",
       "1463                       10                        6   \n",
       "1464                       10                        6   \n",
       "...                       ...                      ...   \n",
       "1820                        9                        6   \n",
       "1821                        9                        6   \n",
       "1822                        9                        6   \n",
       "1823                        9                        6   \n",
       "1824                        9                        6   \n",
       "\n",
       "      DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "1460                        0                    -9999   \n",
       "1461                        0                    -9999   \n",
       "1462                        0                    -9999   \n",
       "1463                        0                    -9999   \n",
       "1464                        0                    -9999   \n",
       "...                       ...                      ...   \n",
       "1820                        0                        2   \n",
       "1821                        0                        2   \n",
       "1822                        0                        2   \n",
       "1823                        0                        2   \n",
       "1824                        0                        2   \n",
       "\n",
       "      DLY-SNOW-PCTALL-GE050TI      STATION_right      STATION_NAME_right  \\\n",
       "1460                    -9999  GHCND:USC00045721  MITCHELL CAVERNS CA US   \n",
       "1461                    -9999  GHCND:USC00045721  MITCHELL CAVERNS CA US   \n",
       "1462                    -9999  GHCND:USC00045721  MITCHELL CAVERNS CA US   \n",
       "1463                    -9999  GHCND:USC00045721  MITCHELL CAVERNS CA US   \n",
       "1464                    -9999  GHCND:USC00045721  MITCHELL CAVERNS CA US   \n",
       "...                       ...                ...                     ...   \n",
       "1820                        2  GHCND:USC00045721  MITCHELL CAVERNS CA US   \n",
       "1821                        2  GHCND:USC00045721  MITCHELL CAVERNS CA US   \n",
       "1822                        2  GHCND:USC00045721  MITCHELL CAVERNS CA US   \n",
       "1823                        2  GHCND:USC00045721  MITCHELL CAVERNS CA US   \n",
       "1824                        2  GHCND:USC00045721  MITCHELL CAVERNS CA US   \n",
       "\n",
       "     ELEVATION LATITUDE  LONGITUDE  DATE_right  DLY-CLDD-BASE45  \\\n",
       "1460    1325.9  34.9436  -115.5469    20100101                3   \n",
       "1461    1325.9  34.9436  -115.5469    20100102                3   \n",
       "1462    1325.9  34.9436  -115.5469    20100103                3   \n",
       "1463    1325.9  34.9436  -115.5469    20100104                3   \n",
       "1464    1325.9  34.9436  -115.5469    20100105                3   \n",
       "...        ...      ...        ...         ...              ...   \n",
       "1820    1325.9  34.9436  -115.5469    20101227                3   \n",
       "1821    1325.9  34.9436  -115.5469    20101228                3   \n",
       "1822    1325.9  34.9436  -115.5469    20101229                3   \n",
       "1823    1325.9  34.9436  -115.5469    20101230                3   \n",
       "1824    1325.9  34.9436  -115.5469    20101231                3   \n",
       "\n",
       "      DLY-CLDD-BASE50  DLY-CLDD-BASE55  DLY-CLDD-BASE57  DLY-CLDD-BASE60  \\\n",
       "1460                1            -7777            -7777            -7777   \n",
       "1461                1            -7777            -7777            -7777   \n",
       "1462                1            -7777            -7777            -7777   \n",
       "1463                1            -7777            -7777            -7777   \n",
       "1464                1            -7777            -7777            -7777   \n",
       "...               ...              ...              ...              ...   \n",
       "1820                1            -7777            -7777            -7777   \n",
       "1821                1            -7777            -7777            -7777   \n",
       "1822                1            -7777            -7777            -7777   \n",
       "1823                1            -7777            -7777            -7777   \n",
       "1824                1            -7777            -7777            -7777   \n",
       "\n",
       "      DLY-CLDD-NORMAL  DLY-CLDD-BASE70  DLY-CLDD-BASE72  DLY-HTDD-BASE40  \\\n",
       "1460                0                0                0                1   \n",
       "1461                0                0                0                1   \n",
       "1462                0                0                0                1   \n",
       "1463                0                0                0                1   \n",
       "1464                0                0                0                1   \n",
       "...               ...              ...              ...              ...   \n",
       "1820            -7777                0                0                1   \n",
       "1821            -7777                0                0                1   \n",
       "1822            -7777                0                0                1   \n",
       "1823            -7777                0                0                1   \n",
       "1824            -7777                0                0                1   \n",
       "\n",
       "      DLY-HTDD-BASE45  DLY-HTDD-BASE50  DLY-HTDD-BASE55  DLY-HTDD-BASE57  \\\n",
       "1460                3                6               10               12   \n",
       "1461                3                6               10               11   \n",
       "1462                2                5                9               11   \n",
       "1463                2                5                9               11   \n",
       "1464                2                5                9               11   \n",
       "...               ...              ...              ...              ...   \n",
       "1820                3                6               10               12   \n",
       "1821                3                6               10               12   \n",
       "1822                3                6               10               12   \n",
       "1823                3                6               10               12   \n",
       "1824                3                6               10               12   \n",
       "\n",
       "      DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \n",
       "1460               14               19  \n",
       "1461               14               19  \n",
       "1462               14               19  \n",
       "1463               14               19  \n",
       "1464               14               19  \n",
       "...               ...              ...  \n",
       "1820               15               20  \n",
       "1821               15               20  \n",
       "1822               15               20  \n",
       "1823               15               20  \n",
       "1824               15               19  \n",
       "\n",
       "[365 rows x 50 columns]"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "precip_one_station.join(climate_temp, lsuffix=\"_left\", rsuffix=\"_right\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "If you inspect the data, you'll see that overlapping columns are kept, just renamed to be unique. If we flip this around and instead call `.join()` on the larger DataFrame, you'll notice that the DataFrame is larger, but data that doesn't exist in the smaller DataFrame (`precip_one_station`) is filled in with `NaN` (_Not a Number_) values."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION_left</th>\n",
       "      <th>STATION_NAME_left</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DATE_left</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "      <th>STATION_right</th>\n",
       "      <th>STATION_NAME_right</th>\n",
       "      <th>DATE_right</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100101</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100102</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100103</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100104</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100105</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>127015</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>1740.4</td>\n",
       "      <td>34.2308</td>\n",
       "      <td>-118.0711</td>\n",
       "      <td>20101227</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>4</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>20</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>127016</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>1740.4</td>\n",
       "      <td>34.2308</td>\n",
       "      <td>-118.0711</td>\n",
       "      <td>20101228</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>20</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>127017</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>1740.4</td>\n",
       "      <td>34.2308</td>\n",
       "      <td>-118.0711</td>\n",
       "      <td>20101229</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>19</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>127018</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>1740.4</td>\n",
       "      <td>34.2308</td>\n",
       "      <td>-118.0711</td>\n",
       "      <td>20101230</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>19</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>127019</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>1740.4</td>\n",
       "      <td>34.2308</td>\n",
       "      <td>-118.0711</td>\n",
       "      <td>20101231</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>127020 rows × 50 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION_left       STATION_NAME_left ELEVATION  LATITUDE  \\\n",
       "0       GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "1       GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "2       GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "3       GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "4       GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "...                   ...                     ...       ...       ...   \n",
       "127015  GHCND:USC00046006  MOUNT WILSON CBS CA US    1740.4   34.2308   \n",
       "127016  GHCND:USC00046006  MOUNT WILSON CBS CA US    1740.4   34.2308   \n",
       "127017  GHCND:USC00046006  MOUNT WILSON CBS CA US    1740.4   34.2308   \n",
       "127018  GHCND:USC00046006  MOUNT WILSON CBS CA US    1740.4   34.2308   \n",
       "127019  GHCND:USC00046006  MOUNT WILSON CBS CA US    1740.4   34.2308   \n",
       "\n",
       "         LONGITUDE  DATE_left  DLY-CLDD-BASE45  DLY-CLDD-BASE50  \\\n",
       "0       -116.03694   20100101                6                2   \n",
       "1       -116.03694   20100102                6                2   \n",
       "2       -116.03694   20100103                6                2   \n",
       "3       -116.03694   20100104                6                2   \n",
       "4       -116.03694   20100105                6                2   \n",
       "...            ...        ...              ...              ...   \n",
       "127015   -118.0711   20101227                4                2   \n",
       "127016   -118.0711   20101228                4                2   \n",
       "127017   -118.0711   20101229                4                2   \n",
       "127018   -118.0711   20101230                4                2   \n",
       "127019   -118.0711   20101231                4                2   \n",
       "\n",
       "        DLY-CLDD-BASE55  DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  \\\n",
       "0                 -7777            -7777            -7777                0   \n",
       "1                     1            -7777            -7777                0   \n",
       "2                     1            -7777            -7777                0   \n",
       "3                     1            -7777            -7777                0   \n",
       "4                     1            -7777            -7777                0   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015                1            -7777            -7777            -7777   \n",
       "127016                1            -7777            -7777            -7777   \n",
       "127017                1            -7777            -7777            -7777   \n",
       "127018                1            -7777            -7777            -7777   \n",
       "127019                1            -7777            -7777            -7777   \n",
       "\n",
       "        DLY-CLDD-BASE70  DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  \\\n",
       "0                     0                0            -7777                1   \n",
       "1                     0                0            -7777                1   \n",
       "2                     0                0            -7777                1   \n",
       "3                     0                0            -7777                1   \n",
       "4                     0                0            -7777            -7777   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015                0                0                2                4   \n",
       "127016                0                0                2                3   \n",
       "127017                0                0                2                3   \n",
       "127018                0                0                2                3   \n",
       "127019                0                0                1                3   \n",
       "\n",
       "        DLY-HTDD-BASE50  DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  \\\n",
       "0                     2                6                7               10   \n",
       "1                     2                6                7               10   \n",
       "2                     2                5                7               10   \n",
       "3                     2                5                7               10   \n",
       "4                     2                5                7               10   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015                6               10               12               15   \n",
       "127016                6               10               12               15   \n",
       "127017                6               10               12               15   \n",
       "127018                6               10               12               15   \n",
       "127019                6               10               12               14   \n",
       "\n",
       "        DLY-HTDD-NORMAL STATION_right STATION_NAME_right  DATE_right  \\\n",
       "0                    15           NaN                NaN         NaN   \n",
       "1                    15           NaN                NaN         NaN   \n",
       "2                    15           NaN                NaN         NaN   \n",
       "3                    15           NaN                NaN         NaN   \n",
       "4                    15           NaN                NaN         NaN   \n",
       "...                 ...           ...                ...         ...   \n",
       "127015               20           NaN                NaN         NaN   \n",
       "127016               20           NaN                NaN         NaN   \n",
       "127017               19           NaN                NaN         NaN   \n",
       "127018               19           NaN                NaN         NaN   \n",
       "127019               19           NaN                NaN         NaN   \n",
       "\n",
       "        DLY-PRCP-25PCTL  DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  \\\n",
       "0                   NaN              NaN              NaN              NaN   \n",
       "1                   NaN              NaN              NaN              NaN   \n",
       "2                   NaN              NaN              NaN              NaN   \n",
       "3                   NaN              NaN              NaN              NaN   \n",
       "4                   NaN              NaN              NaN              NaN   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015              NaN              NaN              NaN              NaN   \n",
       "127016              NaN              NaN              NaN              NaN   \n",
       "127017              NaN              NaN              NaN              NaN   \n",
       "127018              NaN              NaN              NaN              NaN   \n",
       "127019              NaN              NaN              NaN              NaN   \n",
       "\n",
       "        DLY-SNWD-50PCTL  DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  \\\n",
       "0                   NaN              NaN              NaN              NaN   \n",
       "1                   NaN              NaN              NaN              NaN   \n",
       "2                   NaN              NaN              NaN              NaN   \n",
       "3                   NaN              NaN              NaN              NaN   \n",
       "4                   NaN              NaN              NaN              NaN   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015              NaN              NaN              NaN              NaN   \n",
       "127016              NaN              NaN              NaN              NaN   \n",
       "127017              NaN              NaN              NaN              NaN   \n",
       "127018              NaN              NaN              NaN              NaN   \n",
       "127019              NaN              NaN              NaN              NaN   \n",
       "\n",
       "        DLY-SNOW-75PCTL  MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  \\\n",
       "0                   NaN              NaN              NaN              NaN   \n",
       "1                   NaN              NaN              NaN              NaN   \n",
       "2                   NaN              NaN              NaN              NaN   \n",
       "3                   NaN              NaN              NaN              NaN   \n",
       "4                   NaN              NaN              NaN              NaN   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015              NaN              NaN              NaN              NaN   \n",
       "127016              NaN              NaN              NaN              NaN   \n",
       "127017              NaN              NaN              NaN              NaN   \n",
       "127018              NaN              NaN              NaN              NaN   \n",
       "127019              NaN              NaN              NaN              NaN   \n",
       "\n",
       "        YTD-SNOW-NORMAL  DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  \\\n",
       "0                   NaN                      NaN                      NaN   \n",
       "1                   NaN                      NaN                      NaN   \n",
       "2                   NaN                      NaN                      NaN   \n",
       "3                   NaN                      NaN                      NaN   \n",
       "4                   NaN                      NaN                      NaN   \n",
       "...                 ...                      ...                      ...   \n",
       "127015              NaN                      NaN                      NaN   \n",
       "127016              NaN                      NaN                      NaN   \n",
       "127017              NaN                      NaN                      NaN   \n",
       "127018              NaN                      NaN                      NaN   \n",
       "127019              NaN                      NaN                      NaN   \n",
       "\n",
       "        DLY-PRCP-PCTALL-GE050HI  DLY-PRCP-PCTALL-GE100HI  \\\n",
       "0                           NaN                      NaN   \n",
       "1                           NaN                      NaN   \n",
       "2                           NaN                      NaN   \n",
       "3                           NaN                      NaN   \n",
       "4                           NaN                      NaN   \n",
       "...                         ...                      ...   \n",
       "127015                      NaN                      NaN   \n",
       "127016                      NaN                      NaN   \n",
       "127017                      NaN                      NaN   \n",
       "127018                      NaN                      NaN   \n",
       "127019                      NaN                      NaN   \n",
       "\n",
       "        DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "0                           NaN                      NaN   \n",
       "1                           NaN                      NaN   \n",
       "2                           NaN                      NaN   \n",
       "3                           NaN                      NaN   \n",
       "4                           NaN                      NaN   \n",
       "...                         ...                      ...   \n",
       "127015                      NaN                      NaN   \n",
       "127016                      NaN                      NaN   \n",
       "127017                      NaN                      NaN   \n",
       "127018                      NaN                      NaN   \n",
       "127019                      NaN                      NaN   \n",
       "\n",
       "        DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  \\\n",
       "0                           NaN                      NaN   \n",
       "1                           NaN                      NaN   \n",
       "2                           NaN                      NaN   \n",
       "3                           NaN                      NaN   \n",
       "4                           NaN                      NaN   \n",
       "...                         ...                      ...   \n",
       "127015                      NaN                      NaN   \n",
       "127016                      NaN                      NaN   \n",
       "127017                      NaN                      NaN   \n",
       "127018                      NaN                      NaN   \n",
       "127019                      NaN                      NaN   \n",
       "\n",
       "        DLY-SNOW-PCTALL-GE001TI  DLY-SNOW-PCTALL-GE010TI  \\\n",
       "0                           NaN                      NaN   \n",
       "1                           NaN                      NaN   \n",
       "2                           NaN                      NaN   \n",
       "3                           NaN                      NaN   \n",
       "4                           NaN                      NaN   \n",
       "...                         ...                      ...   \n",
       "127015                      NaN                      NaN   \n",
       "127016                      NaN                      NaN   \n",
       "127017                      NaN                      NaN   \n",
       "127018                      NaN                      NaN   \n",
       "127019                      NaN                      NaN   \n",
       "\n",
       "        DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "0                           NaN                      NaN   \n",
       "1                           NaN                      NaN   \n",
       "2                           NaN                      NaN   \n",
       "3                           NaN                      NaN   \n",
       "4                           NaN                      NaN   \n",
       "...                         ...                      ...   \n",
       "127015                      NaN                      NaN   \n",
       "127016                      NaN                      NaN   \n",
       "127017                      NaN                      NaN   \n",
       "127018                      NaN                      NaN   \n",
       "127019                      NaN                      NaN   \n",
       "\n",
       "        DLY-SNOW-PCTALL-GE050TI  \n",
       "0                           NaN  \n",
       "1                           NaN  \n",
       "2                           NaN  \n",
       "3                           NaN  \n",
       "4                           NaN  \n",
       "...                         ...  \n",
       "127015                      NaN  \n",
       "127016                      NaN  \n",
       "127017                      NaN  \n",
       "127018                      NaN  \n",
       "127019                      NaN  \n",
       "\n",
       "[127020 rows x 50 columns]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "climate_temp.join(precip_one_station, lsuffix=\"_left\", rsuffix=\"_right\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "If you must use `.join()` and want to merge the columns, you must set them to be indexes first. First take a look at this previously used `merge()` operation:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME_x</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "      <th>STATION_NAME_y</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100101</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>98</td>\n",
       "      <td>43</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100102</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>99</td>\n",
       "      <td>44</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100103</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>100</td>\n",
       "      <td>44</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100104</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>101</td>\n",
       "      <td>45</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100105</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>102</td>\n",
       "      <td>45</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION          STATION_NAME_x ELEVATION  LATITUDE   LONGITUDE  \\\n",
       "0  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "1  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "2  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "3  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "4  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "\n",
       "       DATE  DLY-CLDD-BASE45  DLY-CLDD-BASE50  DLY-CLDD-BASE55  \\\n",
       "0  20100101                6                2            -7777   \n",
       "1  20100102                6                2                1   \n",
       "2  20100103                6                2                1   \n",
       "3  20100104                6                2                1   \n",
       "4  20100105                6                2                1   \n",
       "\n",
       "   DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  DLY-CLDD-BASE70  \\\n",
       "0            -7777            -7777                0                0   \n",
       "1            -7777            -7777                0                0   \n",
       "2            -7777            -7777                0                0   \n",
       "3            -7777            -7777                0                0   \n",
       "4            -7777            -7777                0                0   \n",
       "\n",
       "   DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  DLY-HTDD-BASE50  \\\n",
       "0                0            -7777                1                2   \n",
       "1                0            -7777                1                2   \n",
       "2                0            -7777                1                2   \n",
       "3                0            -7777                1                2   \n",
       "4                0            -7777            -7777                2   \n",
       "\n",
       "   DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \\\n",
       "0                6                7               10               15   \n",
       "1                6                7               10               15   \n",
       "2                5                7               10               15   \n",
       "3                5                7               10               15   \n",
       "4                5                7               10               15   \n",
       "\n",
       "           STATION_NAME_y  DLY-PRCP-25PCTL  DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  \\\n",
       "0  TWENTYNINE PALMS CA US            -6.66             -666            -66.6   \n",
       "1  TWENTYNINE PALMS CA US            -6.66             -666            -66.6   \n",
       "2  TWENTYNINE PALMS CA US            -6.66             -666            -66.6   \n",
       "3  TWENTYNINE PALMS CA US            -6.66            -9999          -9999.0   \n",
       "4  TWENTYNINE PALMS CA US            -6.66            -9999          -9999.0   \n",
       "\n",
       "   DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  \\\n",
       "0            -6.66             -666            -66.6            -6.66   \n",
       "1            -6.66             -666            -66.6            -6.66   \n",
       "2            -6.66             -666            -66.6            -6.66   \n",
       "3            -6.66            -9999          -9999.0            -6.66   \n",
       "4            -6.66            -9999          -9999.0            -6.66   \n",
       "\n",
       "   DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  \\\n",
       "0             -666            -66.6             0.02              0.0   \n",
       "1             -666            -66.6             0.04              0.0   \n",
       "2             -666            -66.6             0.05              0.0   \n",
       "3            -9999          -9999.0             0.07              0.0   \n",
       "4            -9999          -9999.0             0.09              0.0   \n",
       "\n",
       "   YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  DLY-PRCP-PCTALL-GE001HI  \\\n",
       "0             0.02              0.0                       98   \n",
       "1             0.04              0.0                       99   \n",
       "2             0.05              0.0                      100   \n",
       "3             0.07              0.0                      101   \n",
       "4             0.09              0.0                      102   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  DLY-PRCP-PCTALL-GE100HI  \\\n",
       "0                       43                       12                        3   \n",
       "1                       44                       12                        3   \n",
       "2                       44                       12                        3   \n",
       "3                       45                       12                        3   \n",
       "4                       45                       12                        3   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  DLY-SNWD-PCTALL-GE003WI  \\\n",
       "0                    -9999                        0                    -9999   \n",
       "1                    -9999                        0                    -9999   \n",
       "2                    -9999                        0                    -9999   \n",
       "3                        0                        0                        0   \n",
       "4                        0                        0                        0   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  DLY-SNOW-PCTALL-GE010TI  \\\n",
       "0                    -9999                    -9999                    -9999   \n",
       "1                    -9999                    -9999                    -9999   \n",
       "2                    -9999                    -9999                    -9999   \n",
       "3                        0                        0                        0   \n",
       "4                        0                        0                        0   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  DLY-SNOW-PCTALL-GE050TI  \n",
       "0                        0                    -9999                    -9999  \n",
       "1                        0                    -9999                    -9999  \n",
       "2                        0                    -9999                    -9999  \n",
       "3                        0                        0                        0  \n",
       "4                        0                        0                        0  "
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "inner_merged_total = pd.merge(\n",
    "    climate_temp, climate_precip, on=[\"STATION\", \"DATE\"]\n",
    ")\n",
    "inner_merged_total.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME_x</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "      <th>STATION_NAME_y</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100101</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>98</td>\n",
       "      <td>43</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100102</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>99</td>\n",
       "      <td>44</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100103</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>100</td>\n",
       "      <td>44</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100104</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>101</td>\n",
       "      <td>45</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100105</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>102</td>\n",
       "      <td>45</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION          STATION_NAME_x ELEVATION  LATITUDE   LONGITUDE  \\\n",
       "0  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "1  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "2  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "3  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "4  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806  -116.03694   \n",
       "\n",
       "       DATE  DLY-CLDD-BASE45  DLY-CLDD-BASE50  DLY-CLDD-BASE55  \\\n",
       "0  20100101                6                2            -7777   \n",
       "1  20100102                6                2                1   \n",
       "2  20100103                6                2                1   \n",
       "3  20100104                6                2                1   \n",
       "4  20100105                6                2                1   \n",
       "\n",
       "   DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  DLY-CLDD-BASE70  \\\n",
       "0            -7777            -7777                0                0   \n",
       "1            -7777            -7777                0                0   \n",
       "2            -7777            -7777                0                0   \n",
       "3            -7777            -7777                0                0   \n",
       "4            -7777            -7777                0                0   \n",
       "\n",
       "   DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  DLY-HTDD-BASE50  \\\n",
       "0                0            -7777                1                2   \n",
       "1                0            -7777                1                2   \n",
       "2                0            -7777                1                2   \n",
       "3                0            -7777                1                2   \n",
       "4                0            -7777            -7777                2   \n",
       "\n",
       "   DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \\\n",
       "0                6                7               10               15   \n",
       "1                6                7               10               15   \n",
       "2                5                7               10               15   \n",
       "3                5                7               10               15   \n",
       "4                5                7               10               15   \n",
       "\n",
       "           STATION_NAME_y  DLY-PRCP-25PCTL  DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  \\\n",
       "0  TWENTYNINE PALMS CA US            -6.66             -666            -66.6   \n",
       "1  TWENTYNINE PALMS CA US            -6.66             -666            -66.6   \n",
       "2  TWENTYNINE PALMS CA US            -6.66             -666            -66.6   \n",
       "3  TWENTYNINE PALMS CA US            -6.66            -9999          -9999.0   \n",
       "4  TWENTYNINE PALMS CA US            -6.66            -9999          -9999.0   \n",
       "\n",
       "   DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  \\\n",
       "0            -6.66             -666            -66.6            -6.66   \n",
       "1            -6.66             -666            -66.6            -6.66   \n",
       "2            -6.66             -666            -66.6            -6.66   \n",
       "3            -6.66            -9999          -9999.0            -6.66   \n",
       "4            -6.66            -9999          -9999.0            -6.66   \n",
       "\n",
       "   DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  \\\n",
       "0             -666            -66.6             0.02              0.0   \n",
       "1             -666            -66.6             0.04              0.0   \n",
       "2             -666            -66.6             0.05              0.0   \n",
       "3            -9999          -9999.0             0.07              0.0   \n",
       "4            -9999          -9999.0             0.09              0.0   \n",
       "\n",
       "   YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  DLY-PRCP-PCTALL-GE001HI  \\\n",
       "0             0.02              0.0                       98   \n",
       "1             0.04              0.0                       99   \n",
       "2             0.05              0.0                      100   \n",
       "3             0.07              0.0                      101   \n",
       "4             0.09              0.0                      102   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  DLY-PRCP-PCTALL-GE100HI  \\\n",
       "0                       43                       12                        3   \n",
       "1                       44                       12                        3   \n",
       "2                       44                       12                        3   \n",
       "3                       45                       12                        3   \n",
       "4                       45                       12                        3   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  DLY-SNWD-PCTALL-GE003WI  \\\n",
       "0                    -9999                        0                    -9999   \n",
       "1                    -9999                        0                    -9999   \n",
       "2                    -9999                        0                    -9999   \n",
       "3                        0                        0                        0   \n",
       "4                        0                        0                        0   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  DLY-SNOW-PCTALL-GE010TI  \\\n",
       "0                    -9999                    -9999                    -9999   \n",
       "1                    -9999                    -9999                    -9999   \n",
       "2                    -9999                    -9999                    -9999   \n",
       "3                        0                        0                        0   \n",
       "4                        0                        0                        0   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  DLY-SNOW-PCTALL-GE050TI  \n",
       "0                        0                    -9999                    -9999  \n",
       "1                        0                    -9999                    -9999  \n",
       "2                        0                    -9999                    -9999  \n",
       "3                        0                        0                        0  \n",
       "4                        0                        0                        0  "
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "inner_joined_total = climate_temp.join(\n",
    "    climate_precip.set_index([\"STATION\", \"DATE\"]),\n",
    "    on=[\"STATION\", \"DATE\"],\n",
    "    how=\"inner\",\n",
    "    lsuffix=\"_x\",\n",
    "    rsuffix=\"_y\",\n",
    ")\n",
    "inner_joined_total.head()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Because `.join()` works on indexes, if we want to recreate `merge()` before, then we must set indexes on the join columns we specify. In this example, you used the `.set_index()` method to set your indexes to the key columns within the join. \n",
    "\n",
    "Below you will see an almost-bare `.join()` call. Because there are overlapping columns, you will have to specify a suffix with `lsuffix`, `rsuffix`, or both, but this example will demonstrate the more typical behavior of `.join()`."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION_left</th>\n",
       "      <th>STATION_NAME_left</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DATE_left</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100101</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100101</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>98</td>\n",
       "      <td>43</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100102</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100102</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>99</td>\n",
       "      <td>44</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100103</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100103</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>100</td>\n",
       "      <td>44</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100104</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100104</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>101</td>\n",
       "      <td>45</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100105</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>2</td>\n",
       "      <td>5</td>\n",
       "      <td>7</td>\n",
       "      <td>10</td>\n",
       "      <td>15</td>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100105</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>102</td>\n",
       "      <td>45</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>127015</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>1740.4</td>\n",
       "      <td>34.2308</td>\n",
       "      <td>-118.0711</td>\n",
       "      <td>20101227</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>4</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>20</td>\n",
       "      <td>GHCND:USC00047874</td>\n",
       "      <td>SAN PASQUAL ANIMAL PARK CA US</td>\n",
       "      <td>20101227</td>\n",
       "      <td>0.06</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.20</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>1.78</td>\n",
       "      <td>0.0</td>\n",
       "      <td>13.71</td>\n",
       "      <td>0.0</td>\n",
       "      <td>210</td>\n",
       "      <td>137</td>\n",
       "      <td>45</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>127016</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>1740.4</td>\n",
       "      <td>34.2308</td>\n",
       "      <td>-118.0711</td>\n",
       "      <td>20101228</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>20</td>\n",
       "      <td>GHCND:USC00047874</td>\n",
       "      <td>SAN PASQUAL ANIMAL PARK CA US</td>\n",
       "      <td>20101228</td>\n",
       "      <td>0.06</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.20</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>1.85</td>\n",
       "      <td>0.0</td>\n",
       "      <td>13.78</td>\n",
       "      <td>0.0</td>\n",
       "      <td>210</td>\n",
       "      <td>137</td>\n",
       "      <td>46</td>\n",
       "      <td>15</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>127017</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>1740.4</td>\n",
       "      <td>34.2308</td>\n",
       "      <td>-118.0711</td>\n",
       "      <td>20101229</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>19</td>\n",
       "      <td>GHCND:USC00047874</td>\n",
       "      <td>SAN PASQUAL ANIMAL PARK CA US</td>\n",
       "      <td>20101229</td>\n",
       "      <td>0.06</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.20</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.46</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>1.93</td>\n",
       "      <td>0.0</td>\n",
       "      <td>13.86</td>\n",
       "      <td>0.0</td>\n",
       "      <td>210</td>\n",
       "      <td>137</td>\n",
       "      <td>47</td>\n",
       "      <td>16</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>127018</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>1740.4</td>\n",
       "      <td>34.2308</td>\n",
       "      <td>-118.0711</td>\n",
       "      <td>20101230</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>19</td>\n",
       "      <td>GHCND:USC00047874</td>\n",
       "      <td>SAN PASQUAL ANIMAL PARK CA US</td>\n",
       "      <td>20101230</td>\n",
       "      <td>0.06</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.20</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.47</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>2.01</td>\n",
       "      <td>0.0</td>\n",
       "      <td>13.94</td>\n",
       "      <td>0.0</td>\n",
       "      <td>210</td>\n",
       "      <td>137</td>\n",
       "      <td>48</td>\n",
       "      <td>16</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>127019</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>1740.4</td>\n",
       "      <td>34.2308</td>\n",
       "      <td>-118.0711</td>\n",
       "      <td>20101231</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>-7777</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>6</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>14</td>\n",
       "      <td>19</td>\n",
       "      <td>GHCND:USC00047874</td>\n",
       "      <td>SAN PASQUAL ANIMAL PARK CA US</td>\n",
       "      <td>20101231</td>\n",
       "      <td>0.06</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.20</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.47</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>2.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>14.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>210</td>\n",
       "      <td>137</td>\n",
       "      <td>49</td>\n",
       "      <td>16</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>127020 rows × 50 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION_left       STATION_NAME_left ELEVATION  LATITUDE  \\\n",
       "0       GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "1       GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "2       GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "3       GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "4       GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "...                   ...                     ...       ...       ...   \n",
       "127015  GHCND:USC00046006  MOUNT WILSON CBS CA US    1740.4   34.2308   \n",
       "127016  GHCND:USC00046006  MOUNT WILSON CBS CA US    1740.4   34.2308   \n",
       "127017  GHCND:USC00046006  MOUNT WILSON CBS CA US    1740.4   34.2308   \n",
       "127018  GHCND:USC00046006  MOUNT WILSON CBS CA US    1740.4   34.2308   \n",
       "127019  GHCND:USC00046006  MOUNT WILSON CBS CA US    1740.4   34.2308   \n",
       "\n",
       "         LONGITUDE  DATE_left  DLY-CLDD-BASE45  DLY-CLDD-BASE50  \\\n",
       "0       -116.03694   20100101                6                2   \n",
       "1       -116.03694   20100102                6                2   \n",
       "2       -116.03694   20100103                6                2   \n",
       "3       -116.03694   20100104                6                2   \n",
       "4       -116.03694   20100105                6                2   \n",
       "...            ...        ...              ...              ...   \n",
       "127015   -118.0711   20101227                4                2   \n",
       "127016   -118.0711   20101228                4                2   \n",
       "127017   -118.0711   20101229                4                2   \n",
       "127018   -118.0711   20101230                4                2   \n",
       "127019   -118.0711   20101231                4                2   \n",
       "\n",
       "        DLY-CLDD-BASE55  DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  \\\n",
       "0                 -7777            -7777            -7777                0   \n",
       "1                     1            -7777            -7777                0   \n",
       "2                     1            -7777            -7777                0   \n",
       "3                     1            -7777            -7777                0   \n",
       "4                     1            -7777            -7777                0   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015                1            -7777            -7777            -7777   \n",
       "127016                1            -7777            -7777            -7777   \n",
       "127017                1            -7777            -7777            -7777   \n",
       "127018                1            -7777            -7777            -7777   \n",
       "127019                1            -7777            -7777            -7777   \n",
       "\n",
       "        DLY-CLDD-BASE70  DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  \\\n",
       "0                     0                0            -7777                1   \n",
       "1                     0                0            -7777                1   \n",
       "2                     0                0            -7777                1   \n",
       "3                     0                0            -7777                1   \n",
       "4                     0                0            -7777            -7777   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015                0                0                2                4   \n",
       "127016                0                0                2                3   \n",
       "127017                0                0                2                3   \n",
       "127018                0                0                2                3   \n",
       "127019                0                0                1                3   \n",
       "\n",
       "        DLY-HTDD-BASE50  DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  \\\n",
       "0                     2                6                7               10   \n",
       "1                     2                6                7               10   \n",
       "2                     2                5                7               10   \n",
       "3                     2                5                7               10   \n",
       "4                     2                5                7               10   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015                6               10               12               15   \n",
       "127016                6               10               12               15   \n",
       "127017                6               10               12               15   \n",
       "127018                6               10               12               15   \n",
       "127019                6               10               12               14   \n",
       "\n",
       "        DLY-HTDD-NORMAL            STATION                   STATION_NAME  \\\n",
       "0                    15  GHCND:USC00049099         TWENTYNINE PALMS CA US   \n",
       "1                    15  GHCND:USC00049099         TWENTYNINE PALMS CA US   \n",
       "2                    15  GHCND:USC00049099         TWENTYNINE PALMS CA US   \n",
       "3                    15  GHCND:USC00049099         TWENTYNINE PALMS CA US   \n",
       "4                    15  GHCND:USC00049099         TWENTYNINE PALMS CA US   \n",
       "...                 ...                ...                            ...   \n",
       "127015               20  GHCND:USC00047874  SAN PASQUAL ANIMAL PARK CA US   \n",
       "127016               20  GHCND:USC00047874  SAN PASQUAL ANIMAL PARK CA US   \n",
       "127017               19  GHCND:USC00047874  SAN PASQUAL ANIMAL PARK CA US   \n",
       "127018               19  GHCND:USC00047874  SAN PASQUAL ANIMAL PARK CA US   \n",
       "127019               19  GHCND:USC00047874  SAN PASQUAL ANIMAL PARK CA US   \n",
       "\n",
       "            DATE  DLY-PRCP-25PCTL  DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  \\\n",
       "0       20100101            -6.66             -666            -66.6   \n",
       "1       20100102            -6.66             -666            -66.6   \n",
       "2       20100103            -6.66             -666            -66.6   \n",
       "3       20100104            -6.66            -9999          -9999.0   \n",
       "4       20100105            -6.66            -9999          -9999.0   \n",
       "...          ...              ...              ...              ...   \n",
       "127015  20101227             0.06            -9999          -9999.0   \n",
       "127016  20101228             0.06            -9999          -9999.0   \n",
       "127017  20101229             0.06            -9999          -9999.0   \n",
       "127018  20101230             0.06            -9999          -9999.0   \n",
       "127019  20101231             0.06            -9999          -9999.0   \n",
       "\n",
       "        DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  \\\n",
       "0                 -6.66             -666            -66.6            -6.66   \n",
       "1                 -6.66             -666            -66.6            -6.66   \n",
       "2                 -6.66             -666            -66.6            -6.66   \n",
       "3                 -6.66            -9999          -9999.0            -6.66   \n",
       "4                 -6.66            -9999          -9999.0            -6.66   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015             0.20            -9999          -9999.0             0.45   \n",
       "127016             0.20            -9999          -9999.0             0.45   \n",
       "127017             0.20            -9999          -9999.0             0.46   \n",
       "127018             0.20            -9999          -9999.0             0.47   \n",
       "127019             0.20            -9999          -9999.0             0.47   \n",
       "\n",
       "        DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  \\\n",
       "0                  -666            -66.6             0.02              0.0   \n",
       "1                  -666            -66.6             0.04              0.0   \n",
       "2                  -666            -66.6             0.05              0.0   \n",
       "3                 -9999          -9999.0             0.07              0.0   \n",
       "4                 -9999          -9999.0             0.09              0.0   \n",
       "...                 ...              ...              ...              ...   \n",
       "127015            -9999          -9999.0             1.78              0.0   \n",
       "127016            -9999          -9999.0             1.85              0.0   \n",
       "127017            -9999          -9999.0             1.93              0.0   \n",
       "127018            -9999          -9999.0             2.01              0.0   \n",
       "127019            -9999          -9999.0             2.09              0.0   \n",
       "\n",
       "        YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  DLY-PRCP-PCTALL-GE001HI  \\\n",
       "0                  0.02              0.0                       98   \n",
       "1                  0.04              0.0                       99   \n",
       "2                  0.05              0.0                      100   \n",
       "3                  0.07              0.0                      101   \n",
       "4                  0.09              0.0                      102   \n",
       "...                 ...              ...                      ...   \n",
       "127015            13.71              0.0                      210   \n",
       "127016            13.78              0.0                      210   \n",
       "127017            13.86              0.0                      210   \n",
       "127018            13.94              0.0                      210   \n",
       "127019            14.02              0.0                      210   \n",
       "\n",
       "        DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  \\\n",
       "0                            43                       12   \n",
       "1                            44                       12   \n",
       "2                            44                       12   \n",
       "3                            45                       12   \n",
       "4                            45                       12   \n",
       "...                         ...                      ...   \n",
       "127015                      137                       45   \n",
       "127016                      137                       46   \n",
       "127017                      137                       47   \n",
       "127018                      137                       48   \n",
       "127019                      137                       49   \n",
       "\n",
       "        DLY-PRCP-PCTALL-GE100HI  DLY-SNWD-PCTALL-GE001WI  \\\n",
       "0                             3                    -9999   \n",
       "1                             3                    -9999   \n",
       "2                             3                    -9999   \n",
       "3                             3                        0   \n",
       "4                             3                        0   \n",
       "...                         ...                      ...   \n",
       "127015                       15                        0   \n",
       "127016                       15                        0   \n",
       "127017                       16                        0   \n",
       "127018                       16                        0   \n",
       "127019                       16                        0   \n",
       "\n",
       "        DLY-SNWD-PCTALL-GE010WI  DLY-SNWD-PCTALL-GE003WI  \\\n",
       "0                             0                    -9999   \n",
       "1                             0                    -9999   \n",
       "2                             0                    -9999   \n",
       "3                             0                        0   \n",
       "4                             0                        0   \n",
       "...                         ...                      ...   \n",
       "127015                        0                        0   \n",
       "127016                        0                        0   \n",
       "127017                        0                        0   \n",
       "127018                        0                        0   \n",
       "127019                        0                        0   \n",
       "\n",
       "        DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  \\\n",
       "0                         -9999                    -9999   \n",
       "1                         -9999                    -9999   \n",
       "2                         -9999                    -9999   \n",
       "3                             0                        0   \n",
       "4                             0                        0   \n",
       "...                         ...                      ...   \n",
       "127015                        0                        0   \n",
       "127016                        0                        0   \n",
       "127017                        0                        0   \n",
       "127018                        0                        0   \n",
       "127019                        0                        0   \n",
       "\n",
       "        DLY-SNOW-PCTALL-GE010TI  DLY-SNOW-PCTALL-GE100TI  \\\n",
       "0                         -9999                        0   \n",
       "1                         -9999                        0   \n",
       "2                         -9999                        0   \n",
       "3                             0                        0   \n",
       "4                             0                        0   \n",
       "...                         ...                      ...   \n",
       "127015                        0                        0   \n",
       "127016                        0                        0   \n",
       "127017                        0                        0   \n",
       "127018                        0                        0   \n",
       "127019                        0                        0   \n",
       "\n",
       "        DLY-SNOW-PCTALL-GE030TI  DLY-SNOW-PCTALL-GE050TI  \n",
       "0                         -9999                    -9999  \n",
       "1                         -9999                    -9999  \n",
       "2                         -9999                    -9999  \n",
       "3                             0                        0  \n",
       "4                             0                        0  \n",
       "...                         ...                      ...  \n",
       "127015                        0                        0  \n",
       "127016                        0                        0  \n",
       "127017                        0                        0  \n",
       "127018                        0                        0  \n",
       "127019                        0                        0  \n",
       "\n",
       "[127020 rows x 50 columns]"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "climate_temp.join(climate_precip, lsuffix=\"_left\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## concat()\n",
    "\n",
    "First, you will see a basic concatenation along axis 0."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1460</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100101</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>137</td>\n",
       "      <td>81</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1461</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100102</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>138</td>\n",
       "      <td>83</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1462</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100103</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>139</td>\n",
       "      <td>84</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1463</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100104</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>140</td>\n",
       "      <td>85</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1464</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100105</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.17</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.46</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>141</td>\n",
       "      <td>86</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                STATION            STATION_NAME      DATE  DLY-PRCP-25PCTL  \\\n",
       "1460  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100101             0.04   \n",
       "1461  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100102             0.05   \n",
       "1462  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100103             0.05   \n",
       "1463  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100104             0.05   \n",
       "1464  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100105             0.05   \n",
       "\n",
       "      DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "1460             -666            -66.6             0.16             -666   \n",
       "1461             -666            -66.6             0.16             -666   \n",
       "1462             -666            -66.6             0.16             -666   \n",
       "1463             -666            -66.6             0.16             -666   \n",
       "1464             -666            -66.6             0.17             -666   \n",
       "\n",
       "      DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  \\\n",
       "1460            -66.6             0.44             -666            -66.6   \n",
       "1461            -66.6             0.44             -666            -66.6   \n",
       "1462            -66.6             0.45             -666            -66.6   \n",
       "1463            -66.6             0.45             -666            -66.6   \n",
       "1464            -66.6             0.46             -666            -66.6   \n",
       "\n",
       "      MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  \\\n",
       "1460             0.04              0.0             0.04              0.0   \n",
       "1461             0.08              0.0             0.08              0.0   \n",
       "1462             0.12              0.0             0.12              0.0   \n",
       "1463             0.16              0.0             0.16              0.0   \n",
       "1464             0.21              0.0             0.21              0.0   \n",
       "\n",
       "      DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  \\\n",
       "1460                      137                       81   \n",
       "1461                      138                       83   \n",
       "1462                      139                       84   \n",
       "1463                      140                       85   \n",
       "1464                      141                       86   \n",
       "\n",
       "      DLY-PRCP-PCTALL-GE050HI  DLY-PRCP-PCTALL-GE100HI  \\\n",
       "1460                       31                       11   \n",
       "1461                       31                       11   \n",
       "1462                       31                       11   \n",
       "1463                       32                       11   \n",
       "1464                       32                       11   \n",
       "\n",
       "      DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "1460                        4                        0   \n",
       "1461                        4                        0   \n",
       "1462                        4                        0   \n",
       "1463                        4                        0   \n",
       "1464                        4                        0   \n",
       "\n",
       "      DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  \\\n",
       "1460                        3                        3   \n",
       "1461                        3                        3   \n",
       "1462                        3                        3   \n",
       "1463                        3                        2   \n",
       "1464                        3                        2   \n",
       "\n",
       "      DLY-SNOW-PCTALL-GE001TI  DLY-SNOW-PCTALL-GE010TI  \\\n",
       "1460                        9                        6   \n",
       "1461                       10                        6   \n",
       "1462                       10                        6   \n",
       "1463                       10                        6   \n",
       "1464                       10                        6   \n",
       "\n",
       "      DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "1460                        0                    -9999   \n",
       "1461                        0                    -9999   \n",
       "1462                        0                    -9999   \n",
       "1463                        0                    -9999   \n",
       "1464                        0                    -9999   \n",
       "\n",
       "      DLY-SNOW-PCTALL-GE050TI  \n",
       "1460                    -9999  \n",
       "1461                    -9999  \n",
       "1462                    -9999  \n",
       "1463                    -9999  \n",
       "1464                    -9999  "
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "double_precip = pd.concat([precip_one_station, precip_one_station])\n",
    "double_precip.head()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "To reset the index, use the `ignore_index` optional parameter."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100101</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>137</td>\n",
       "      <td>81</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100102</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.0</td>\n",
       "      <td>138</td>\n",
       "      <td>83</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100103</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>139</td>\n",
       "      <td>84</td>\n",
       "      <td>31</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100104</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.45</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>140</td>\n",
       "      <td>85</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00045721</td>\n",
       "      <td>MITCHELL CAVERNS CA US</td>\n",
       "      <td>20100105</td>\n",
       "      <td>0.05</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.17</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.46</td>\n",
       "      <td>-666</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>141</td>\n",
       "      <td>86</td>\n",
       "      <td>32</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>-9999</td>\n",
       "      <td>-9999</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION            STATION_NAME      DATE  DLY-PRCP-25PCTL  \\\n",
       "0  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100101             0.04   \n",
       "1  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100102             0.05   \n",
       "2  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100103             0.05   \n",
       "3  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100104             0.05   \n",
       "4  GHCND:USC00045721  MITCHELL CAVERNS CA US  20100105             0.05   \n",
       "\n",
       "   DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "0             -666            -66.6             0.16             -666   \n",
       "1             -666            -66.6             0.16             -666   \n",
       "2             -666            -66.6             0.16             -666   \n",
       "3             -666            -66.6             0.16             -666   \n",
       "4             -666            -66.6             0.17             -666   \n",
       "\n",
       "   DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  \\\n",
       "0            -66.6             0.44             -666            -66.6   \n",
       "1            -66.6             0.44             -666            -66.6   \n",
       "2            -66.6             0.45             -666            -66.6   \n",
       "3            -66.6             0.45             -666            -66.6   \n",
       "4            -66.6             0.46             -666            -66.6   \n",
       "\n",
       "   MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  \\\n",
       "0             0.04              0.0             0.04              0.0   \n",
       "1             0.08              0.0             0.08              0.0   \n",
       "2             0.12              0.0             0.12              0.0   \n",
       "3             0.16              0.0             0.16              0.0   \n",
       "4             0.21              0.0             0.21              0.0   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  \\\n",
       "0                      137                       81                       31   \n",
       "1                      138                       83                       31   \n",
       "2                      139                       84                       31   \n",
       "3                      140                       85                       32   \n",
       "4                      141                       86                       32   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE100HI  DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "0                       11                        4                        0   \n",
       "1                       11                        4                        0   \n",
       "2                       11                        4                        0   \n",
       "3                       11                        4                        0   \n",
       "4                       11                        4                        0   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  \\\n",
       "0                        3                        3                        9   \n",
       "1                        3                        3                       10   \n",
       "2                        3                        3                       10   \n",
       "3                        3                        2                       10   \n",
       "4                        3                        2                       10   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE010TI  DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "0                        6                        0                    -9999   \n",
       "1                        6                        0                    -9999   \n",
       "2                        6                        0                    -9999   \n",
       "3                        6                        0                    -9999   \n",
       "4                        6                        0                    -9999   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE050TI  \n",
       "0                    -9999  \n",
       "1                    -9999  \n",
       "2                    -9999  \n",
       "3                    -9999  \n",
       "4                    -9999  "
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "reindexed = pd.concat(\n",
    "    [precip_one_station, precip_one_station], ignore_index=True\n",
    ")\n",
    "reindexed.head()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "When axis labels for the axis you are **not** concatenating along don't match (for example, column labels when concatenating along rows), then all columns are preserved and missing data is filled in with `NaN`. "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100101</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.02</td>\n",
       "      <td>0.0</td>\n",
       "      <td>98.0</td>\n",
       "      <td>43.0</td>\n",
       "      <td>12.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100102</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.0</td>\n",
       "      <td>99.0</td>\n",
       "      <td>44.0</td>\n",
       "      <td>12.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100103</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-666.0</td>\n",
       "      <td>-66.6</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0</td>\n",
       "      <td>100.0</td>\n",
       "      <td>44.0</td>\n",
       "      <td>12.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100104</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.0</td>\n",
       "      <td>101.0</td>\n",
       "      <td>45.0</td>\n",
       "      <td>12.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100105</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-6.66</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.09</td>\n",
       "      <td>0.0</td>\n",
       "      <td>102.0</td>\n",
       "      <td>45.0</td>\n",
       "      <td>12.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION            STATION_NAME      DATE  DLY-PRCP-25PCTL  \\\n",
       "0  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100101            -6.66   \n",
       "1  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100102            -6.66   \n",
       "2  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100103            -6.66   \n",
       "3  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100104            -6.66   \n",
       "4  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100105            -6.66   \n",
       "\n",
       "   DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "0           -666.0            -66.6            -6.66           -666.0   \n",
       "1           -666.0            -66.6            -6.66           -666.0   \n",
       "2           -666.0            -66.6            -6.66           -666.0   \n",
       "3          -9999.0          -9999.0            -6.66          -9999.0   \n",
       "4          -9999.0          -9999.0            -6.66          -9999.0   \n",
       "\n",
       "   DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  \\\n",
       "0            -66.6            -6.66           -666.0            -66.6   \n",
       "1            -66.6            -6.66           -666.0            -66.6   \n",
       "2            -66.6            -6.66           -666.0            -66.6   \n",
       "3          -9999.0            -6.66          -9999.0          -9999.0   \n",
       "4          -9999.0            -6.66          -9999.0          -9999.0   \n",
       "\n",
       "   MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  \\\n",
       "0             0.02              0.0             0.02              0.0   \n",
       "1             0.04              0.0             0.04              0.0   \n",
       "2             0.05              0.0             0.05              0.0   \n",
       "3             0.07              0.0             0.07              0.0   \n",
       "4             0.09              0.0             0.09              0.0   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE001HI  DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  \\\n",
       "0                     98.0                     43.0                     12.0   \n",
       "1                     99.0                     44.0                     12.0   \n",
       "2                    100.0                     44.0                     12.0   \n",
       "3                    101.0                     45.0                     12.0   \n",
       "4                    102.0                     45.0                     12.0   \n",
       "\n",
       "   DLY-PRCP-PCTALL-GE100HI  DLY-SNWD-PCTALL-GE001WI  DLY-SNWD-PCTALL-GE010WI  \\\n",
       "0                      3.0                  -9999.0                      0.0   \n",
       "1                      3.0                  -9999.0                      0.0   \n",
       "2                      3.0                  -9999.0                      0.0   \n",
       "3                      3.0                      0.0                      0.0   \n",
       "4                      3.0                      0.0                      0.0   \n",
       "\n",
       "   DLY-SNWD-PCTALL-GE003WI  DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  \\\n",
       "0                  -9999.0                  -9999.0                  -9999.0   \n",
       "1                  -9999.0                  -9999.0                  -9999.0   \n",
       "2                  -9999.0                  -9999.0                  -9999.0   \n",
       "3                      0.0                      0.0                      0.0   \n",
       "4                      0.0                      0.0                      0.0   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE010TI  DLY-SNOW-PCTALL-GE100TI  DLY-SNOW-PCTALL-GE030TI  \\\n",
       "0                  -9999.0                      0.0                  -9999.0   \n",
       "1                  -9999.0                      0.0                  -9999.0   \n",
       "2                  -9999.0                      0.0                  -9999.0   \n",
       "3                      0.0                      0.0                      0.0   \n",
       "4                      0.0                      0.0                      0.0   \n",
       "\n",
       "   DLY-SNOW-PCTALL-GE050TI ELEVATION LATITUDE LONGITUDE  DLY-CLDD-BASE45  \\\n",
       "0                  -9999.0       NaN      NaN       NaN              NaN   \n",
       "1                  -9999.0       NaN      NaN       NaN              NaN   \n",
       "2                  -9999.0       NaN      NaN       NaN              NaN   \n",
       "3                      0.0       NaN      NaN       NaN              NaN   \n",
       "4                      0.0       NaN      NaN       NaN              NaN   \n",
       "\n",
       "   DLY-CLDD-BASE50  DLY-CLDD-BASE55  DLY-CLDD-BASE57  DLY-CLDD-BASE60  \\\n",
       "0              NaN              NaN              NaN              NaN   \n",
       "1              NaN              NaN              NaN              NaN   \n",
       "2              NaN              NaN              NaN              NaN   \n",
       "3              NaN              NaN              NaN              NaN   \n",
       "4              NaN              NaN              NaN              NaN   \n",
       "\n",
       "   DLY-CLDD-NORMAL  DLY-CLDD-BASE70  DLY-CLDD-BASE72  DLY-HTDD-BASE40  \\\n",
       "0              NaN              NaN              NaN              NaN   \n",
       "1              NaN              NaN              NaN              NaN   \n",
       "2              NaN              NaN              NaN              NaN   \n",
       "3              NaN              NaN              NaN              NaN   \n",
       "4              NaN              NaN              NaN              NaN   \n",
       "\n",
       "   DLY-HTDD-BASE45  DLY-HTDD-BASE50  DLY-HTDD-BASE55  DLY-HTDD-BASE57  \\\n",
       "0              NaN              NaN              NaN              NaN   \n",
       "1              NaN              NaN              NaN              NaN   \n",
       "2              NaN              NaN              NaN              NaN   \n",
       "3              NaN              NaN              NaN              NaN   \n",
       "4              NaN              NaN              NaN              NaN   \n",
       "\n",
       "   DLY-HTDD-BASE60  DLY-HTDD-NORMAL  \n",
       "0              NaN              NaN  \n",
       "1              NaN              NaN  \n",
       "2              NaN              NaN  \n",
       "3              NaN              NaN  \n",
       "4              NaN              NaN  "
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "outer_joined = pd.concat([climate_precip, climate_temp])\n",
    "outer_joined.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>DATE</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100101</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100102</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100103</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100104</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100105</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION            STATION_NAME      DATE\n",
       "0  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100101\n",
       "1  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100102\n",
       "2  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100103\n",
       "3  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100104\n",
       "4  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100105"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "inner_joined = pd.concat([climate_temp, climate_precip], join=\"inner\")\n",
    "inner_joined.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(278130, 3)"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "inner_joined.shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "To illustrate how this would work with rows, concatenate along columns instead:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>DATE</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100101</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100102</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100103</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100104</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>20100105</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             STATION            STATION_NAME      DATE\n",
       "0  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100101\n",
       "1  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100102\n",
       "2  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100103\n",
       "3  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100104\n",
       "4  GHCND:USC00049099  TWENTYNINE PALMS CA US  20100105"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "inner_joined_cols = pd.concat(\n",
    "    [climate_temp, climate_precip], axis=\"columns\", join=\"inner\"\n",
    ")\n",
    "inner_joined.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(127020, 50)"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "inner_joined_cols.shape"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "You can also use the `keys` parameter to set hierarchical axis labels which can be used, for example, to preserve original labels while maintaining labels that tell you which dataset each row or column came from."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"5\" valign=\"top\">temp</th>\n",
       "      <th>0</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100101</td>\n",
       "      <td>6.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>7.0</td>\n",
       "      <td>10.0</td>\n",
       "      <td>15.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100102</td>\n",
       "      <td>6.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>7.0</td>\n",
       "      <td>10.0</td>\n",
       "      <td>15.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100103</td>\n",
       "      <td>6.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>7.0</td>\n",
       "      <td>10.0</td>\n",
       "      <td>15.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100104</td>\n",
       "      <td>6.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>7.0</td>\n",
       "      <td>10.0</td>\n",
       "      <td>15.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>GHCND:USC00049099</td>\n",
       "      <td>TWENTYNINE PALMS CA US</td>\n",
       "      <td>602</td>\n",
       "      <td>34.12806</td>\n",
       "      <td>-116.03694</td>\n",
       "      <td>20100105</td>\n",
       "      <td>6.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>-7777.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>7.0</td>\n",
       "      <td>10.0</td>\n",
       "      <td>15.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                  STATION            STATION_NAME ELEVATION  LATITUDE  \\\n",
       "temp 0  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "     1  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "     2  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "     3  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "     4  GHCND:USC00049099  TWENTYNINE PALMS CA US       602  34.12806   \n",
       "\n",
       "         LONGITUDE      DATE  DLY-CLDD-BASE45  DLY-CLDD-BASE50  \\\n",
       "temp 0  -116.03694  20100101              6.0              2.0   \n",
       "     1  -116.03694  20100102              6.0              2.0   \n",
       "     2  -116.03694  20100103              6.0              2.0   \n",
       "     3  -116.03694  20100104              6.0              2.0   \n",
       "     4  -116.03694  20100105              6.0              2.0   \n",
       "\n",
       "        DLY-CLDD-BASE55  DLY-CLDD-BASE57  DLY-CLDD-BASE60  DLY-CLDD-NORMAL  \\\n",
       "temp 0          -7777.0          -7777.0          -7777.0              0.0   \n",
       "     1              1.0          -7777.0          -7777.0              0.0   \n",
       "     2              1.0          -7777.0          -7777.0              0.0   \n",
       "     3              1.0          -7777.0          -7777.0              0.0   \n",
       "     4              1.0          -7777.0          -7777.0              0.0   \n",
       "\n",
       "        DLY-CLDD-BASE70  DLY-CLDD-BASE72  DLY-HTDD-BASE40  DLY-HTDD-BASE45  \\\n",
       "temp 0              0.0              0.0          -7777.0              1.0   \n",
       "     1              0.0              0.0          -7777.0              1.0   \n",
       "     2              0.0              0.0          -7777.0              1.0   \n",
       "     3              0.0              0.0          -7777.0              1.0   \n",
       "     4              0.0              0.0          -7777.0          -7777.0   \n",
       "\n",
       "        DLY-HTDD-BASE50  DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  \\\n",
       "temp 0              2.0              6.0              7.0             10.0   \n",
       "     1              2.0              6.0              7.0             10.0   \n",
       "     2              2.0              5.0              7.0             10.0   \n",
       "     3              2.0              5.0              7.0             10.0   \n",
       "     4              2.0              5.0              7.0             10.0   \n",
       "\n",
       "        DLY-HTDD-NORMAL  DLY-PRCP-25PCTL  DLY-SNWD-25PCTL  DLY-SNOW-25PCTL  \\\n",
       "temp 0             15.0              NaN              NaN              NaN   \n",
       "     1             15.0              NaN              NaN              NaN   \n",
       "     2             15.0              NaN              NaN              NaN   \n",
       "     3             15.0              NaN              NaN              NaN   \n",
       "     4             15.0              NaN              NaN              NaN   \n",
       "\n",
       "        DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  \\\n",
       "temp 0              NaN              NaN              NaN              NaN   \n",
       "     1              NaN              NaN              NaN              NaN   \n",
       "     2              NaN              NaN              NaN              NaN   \n",
       "     3              NaN              NaN              NaN              NaN   \n",
       "     4              NaN              NaN              NaN              NaN   \n",
       "\n",
       "        DLY-SNWD-75PCTL  DLY-SNOW-75PCTL  MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  \\\n",
       "temp 0              NaN              NaN              NaN              NaN   \n",
       "     1              NaN              NaN              NaN              NaN   \n",
       "     2              NaN              NaN              NaN              NaN   \n",
       "     3              NaN              NaN              NaN              NaN   \n",
       "     4              NaN              NaN              NaN              NaN   \n",
       "\n",
       "        YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  DLY-PRCP-PCTALL-GE001HI  \\\n",
       "temp 0              NaN              NaN                      NaN   \n",
       "     1              NaN              NaN                      NaN   \n",
       "     2              NaN              NaN                      NaN   \n",
       "     3              NaN              NaN                      NaN   \n",
       "     4              NaN              NaN                      NaN   \n",
       "\n",
       "        DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  \\\n",
       "temp 0                      NaN                      NaN   \n",
       "     1                      NaN                      NaN   \n",
       "     2                      NaN                      NaN   \n",
       "     3                      NaN                      NaN   \n",
       "     4                      NaN                      NaN   \n",
       "\n",
       "        DLY-PRCP-PCTALL-GE100HI  DLY-SNWD-PCTALL-GE001WI  \\\n",
       "temp 0                      NaN                      NaN   \n",
       "     1                      NaN                      NaN   \n",
       "     2                      NaN                      NaN   \n",
       "     3                      NaN                      NaN   \n",
       "     4                      NaN                      NaN   \n",
       "\n",
       "        DLY-SNWD-PCTALL-GE010WI  DLY-SNWD-PCTALL-GE003WI  \\\n",
       "temp 0                      NaN                      NaN   \n",
       "     1                      NaN                      NaN   \n",
       "     2                      NaN                      NaN   \n",
       "     3                      NaN                      NaN   \n",
       "     4                      NaN                      NaN   \n",
       "\n",
       "        DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  \\\n",
       "temp 0                      NaN                      NaN   \n",
       "     1                      NaN                      NaN   \n",
       "     2                      NaN                      NaN   \n",
       "     3                      NaN                      NaN   \n",
       "     4                      NaN                      NaN   \n",
       "\n",
       "        DLY-SNOW-PCTALL-GE010TI  DLY-SNOW-PCTALL-GE100TI  \\\n",
       "temp 0                      NaN                      NaN   \n",
       "     1                      NaN                      NaN   \n",
       "     2                      NaN                      NaN   \n",
       "     3                      NaN                      NaN   \n",
       "     4                      NaN                      NaN   \n",
       "\n",
       "        DLY-SNOW-PCTALL-GE030TI  DLY-SNOW-PCTALL-GE050TI  \n",
       "temp 0                      NaN                      NaN  \n",
       "     1                      NaN                      NaN  \n",
       "     2                      NaN                      NaN  \n",
       "     3                      NaN                      NaN  \n",
       "     4                      NaN                      NaN  "
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "hierarchical_keys = pd.concat(\n",
    "    [climate_temp, climate_precip], keys=[\"temp\", \"precip\"]\n",
    ")\n",
    "hierarchical_keys.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>STATION</th>\n",
       "      <th>STATION_NAME</th>\n",
       "      <th>ELEVATION</th>\n",
       "      <th>LATITUDE</th>\n",
       "      <th>LONGITUDE</th>\n",
       "      <th>DATE</th>\n",
       "      <th>DLY-CLDD-BASE45</th>\n",
       "      <th>DLY-CLDD-BASE50</th>\n",
       "      <th>DLY-CLDD-BASE55</th>\n",
       "      <th>DLY-CLDD-BASE57</th>\n",
       "      <th>DLY-CLDD-BASE60</th>\n",
       "      <th>DLY-CLDD-NORMAL</th>\n",
       "      <th>DLY-CLDD-BASE70</th>\n",
       "      <th>DLY-CLDD-BASE72</th>\n",
       "      <th>DLY-HTDD-BASE40</th>\n",
       "      <th>DLY-HTDD-BASE45</th>\n",
       "      <th>DLY-HTDD-BASE50</th>\n",
       "      <th>DLY-HTDD-BASE55</th>\n",
       "      <th>DLY-HTDD-BASE57</th>\n",
       "      <th>DLY-HTDD-BASE60</th>\n",
       "      <th>DLY-HTDD-NORMAL</th>\n",
       "      <th>DLY-PRCP-25PCTL</th>\n",
       "      <th>DLY-SNWD-25PCTL</th>\n",
       "      <th>DLY-SNOW-25PCTL</th>\n",
       "      <th>DLY-PRCP-50PCTL</th>\n",
       "      <th>DLY-SNWD-50PCTL</th>\n",
       "      <th>DLY-SNOW-50PCTL</th>\n",
       "      <th>DLY-PRCP-75PCTL</th>\n",
       "      <th>DLY-SNWD-75PCTL</th>\n",
       "      <th>DLY-SNOW-75PCTL</th>\n",
       "      <th>MTD-PRCP-NORMAL</th>\n",
       "      <th>MTD-SNOW-NORMAL</th>\n",
       "      <th>YTD-PRCP-NORMAL</th>\n",
       "      <th>YTD-SNOW-NORMAL</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE001HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE010HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE050HI</th>\n",
       "      <th>DLY-PRCP-PCTALL-GE100HI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE001WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE010WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE003WI</th>\n",
       "      <th>DLY-SNWD-PCTALL-GE005WI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE001TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE010TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE100TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE030TI</th>\n",
       "      <th>DLY-SNOW-PCTALL-GE050TI</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"5\" valign=\"top\">precip</th>\n",
       "      <th>151105</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20101227</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.12</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.41</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>1.13</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>3.91</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>35.20</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>218.0</td>\n",
       "      <td>169.0</td>\n",
       "      <td>100.0</td>\n",
       "      <td>62.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>151106</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20101228</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.12</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.42</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>1.14</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>4.10</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>35.39</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>170.0</td>\n",
       "      <td>101.0</td>\n",
       "      <td>62.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>151107</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20101229</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.12</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.43</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>1.15</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>4.30</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>35.59</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>220.0</td>\n",
       "      <td>171.0</td>\n",
       "      <td>101.0</td>\n",
       "      <td>63.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>151108</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20101230</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.12</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.43</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>1.15</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>4.50</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>35.79</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>220.0</td>\n",
       "      <td>171.0</td>\n",
       "      <td>102.0</td>\n",
       "      <td>64.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>151109</th>\n",
       "      <td>GHCND:USC00046006</td>\n",
       "      <td>MOUNT WILSON CBS CA US</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20101231</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.12</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>1.16</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>4.69</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>35.98</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>220.0</td>\n",
       "      <td>171.0</td>\n",
       "      <td>103.0</td>\n",
       "      <td>64.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "      <td>-9999.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                         STATION            STATION_NAME ELEVATION LATITUDE  \\\n",
       "precip 151105  GHCND:USC00046006  MOUNT WILSON CBS CA US       NaN      NaN   \n",
       "       151106  GHCND:USC00046006  MOUNT WILSON CBS CA US       NaN      NaN   \n",
       "       151107  GHCND:USC00046006  MOUNT WILSON CBS CA US       NaN      NaN   \n",
       "       151108  GHCND:USC00046006  MOUNT WILSON CBS CA US       NaN      NaN   \n",
       "       151109  GHCND:USC00046006  MOUNT WILSON CBS CA US       NaN      NaN   \n",
       "\n",
       "              LONGITUDE      DATE  DLY-CLDD-BASE45  DLY-CLDD-BASE50  \\\n",
       "precip 151105       NaN  20101227              NaN              NaN   \n",
       "       151106       NaN  20101228              NaN              NaN   \n",
       "       151107       NaN  20101229              NaN              NaN   \n",
       "       151108       NaN  20101230              NaN              NaN   \n",
       "       151109       NaN  20101231              NaN              NaN   \n",
       "\n",
       "               DLY-CLDD-BASE55  DLY-CLDD-BASE57  DLY-CLDD-BASE60  \\\n",
       "precip 151105              NaN              NaN              NaN   \n",
       "       151106              NaN              NaN              NaN   \n",
       "       151107              NaN              NaN              NaN   \n",
       "       151108              NaN              NaN              NaN   \n",
       "       151109              NaN              NaN              NaN   \n",
       "\n",
       "               DLY-CLDD-NORMAL  DLY-CLDD-BASE70  DLY-CLDD-BASE72  \\\n",
       "precip 151105              NaN              NaN              NaN   \n",
       "       151106              NaN              NaN              NaN   \n",
       "       151107              NaN              NaN              NaN   \n",
       "       151108              NaN              NaN              NaN   \n",
       "       151109              NaN              NaN              NaN   \n",
       "\n",
       "               DLY-HTDD-BASE40  DLY-HTDD-BASE45  DLY-HTDD-BASE50  \\\n",
       "precip 151105              NaN              NaN              NaN   \n",
       "       151106              NaN              NaN              NaN   \n",
       "       151107              NaN              NaN              NaN   \n",
       "       151108              NaN              NaN              NaN   \n",
       "       151109              NaN              NaN              NaN   \n",
       "\n",
       "               DLY-HTDD-BASE55  DLY-HTDD-BASE57  DLY-HTDD-BASE60  \\\n",
       "precip 151105              NaN              NaN              NaN   \n",
       "       151106              NaN              NaN              NaN   \n",
       "       151107              NaN              NaN              NaN   \n",
       "       151108              NaN              NaN              NaN   \n",
       "       151109              NaN              NaN              NaN   \n",
       "\n",
       "               DLY-HTDD-NORMAL  DLY-PRCP-25PCTL  DLY-SNWD-25PCTL  \\\n",
       "precip 151105              NaN             0.12          -9999.0   \n",
       "       151106              NaN             0.12          -9999.0   \n",
       "       151107              NaN             0.12          -9999.0   \n",
       "       151108              NaN             0.12          -9999.0   \n",
       "       151109              NaN             0.12          -9999.0   \n",
       "\n",
       "               DLY-SNOW-25PCTL  DLY-PRCP-50PCTL  DLY-SNWD-50PCTL  \\\n",
       "precip 151105          -9999.0             0.41          -9999.0   \n",
       "       151106          -9999.0             0.42          -9999.0   \n",
       "       151107          -9999.0             0.43          -9999.0   \n",
       "       151108          -9999.0             0.43          -9999.0   \n",
       "       151109          -9999.0             0.44          -9999.0   \n",
       "\n",
       "               DLY-SNOW-50PCTL  DLY-PRCP-75PCTL  DLY-SNWD-75PCTL  \\\n",
       "precip 151105          -9999.0             1.13          -9999.0   \n",
       "       151106          -9999.0             1.14          -9999.0   \n",
       "       151107          -9999.0             1.15          -9999.0   \n",
       "       151108          -9999.0             1.15          -9999.0   \n",
       "       151109          -9999.0             1.16          -9999.0   \n",
       "\n",
       "               DLY-SNOW-75PCTL  MTD-PRCP-NORMAL  MTD-SNOW-NORMAL  \\\n",
       "precip 151105          -9999.0             3.91          -9999.0   \n",
       "       151106          -9999.0             4.10          -9999.0   \n",
       "       151107          -9999.0             4.30          -9999.0   \n",
       "       151108          -9999.0             4.50          -9999.0   \n",
       "       151109          -9999.0             4.69          -9999.0   \n",
       "\n",
       "               YTD-PRCP-NORMAL  YTD-SNOW-NORMAL  DLY-PRCP-PCTALL-GE001HI  \\\n",
       "precip 151105            35.20          -9999.0                    218.0   \n",
       "       151106            35.39          -9999.0                    219.0   \n",
       "       151107            35.59          -9999.0                    220.0   \n",
       "       151108            35.79          -9999.0                    220.0   \n",
       "       151109            35.98          -9999.0                    220.0   \n",
       "\n",
       "               DLY-PRCP-PCTALL-GE010HI  DLY-PRCP-PCTALL-GE050HI  \\\n",
       "precip 151105                    169.0                    100.0   \n",
       "       151106                    170.0                    101.0   \n",
       "       151107                    171.0                    101.0   \n",
       "       151108                    171.0                    102.0   \n",
       "       151109                    171.0                    103.0   \n",
       "\n",
       "               DLY-PRCP-PCTALL-GE100HI  DLY-SNWD-PCTALL-GE001WI  \\\n",
       "precip 151105                     62.0                  -9999.0   \n",
       "       151106                     62.0                  -9999.0   \n",
       "       151107                     63.0                  -9999.0   \n",
       "       151108                     64.0                  -9999.0   \n",
       "       151109                     64.0                  -9999.0   \n",
       "\n",
       "               DLY-SNWD-PCTALL-GE010WI  DLY-SNWD-PCTALL-GE003WI  \\\n",
       "precip 151105                  -9999.0                  -9999.0   \n",
       "       151106                  -9999.0                  -9999.0   \n",
       "       151107                  -9999.0                  -9999.0   \n",
       "       151108                  -9999.0                  -9999.0   \n",
       "       151109                  -9999.0                  -9999.0   \n",
       "\n",
       "               DLY-SNWD-PCTALL-GE005WI  DLY-SNOW-PCTALL-GE001TI  \\\n",
       "precip 151105                  -9999.0                  -9999.0   \n",
       "       151106                  -9999.0                  -9999.0   \n",
       "       151107                  -9999.0                  -9999.0   \n",
       "       151108                  -9999.0                  -9999.0   \n",
       "       151109                  -9999.0                  -9999.0   \n",
       "\n",
       "               DLY-SNOW-PCTALL-GE010TI  DLY-SNOW-PCTALL-GE100TI  \\\n",
       "precip 151105                  -9999.0                  -9999.0   \n",
       "       151106                  -9999.0                  -9999.0   \n",
       "       151107                  -9999.0                  -9999.0   \n",
       "       151108                  -9999.0                  -9999.0   \n",
       "       151109                  -9999.0                  -9999.0   \n",
       "\n",
       "               DLY-SNOW-PCTALL-GE030TI  DLY-SNOW-PCTALL-GE050TI  \n",
       "precip 151105                  -9999.0                  -9999.0  \n",
       "       151106                  -9999.0                  -9999.0  \n",
       "       151107                  -9999.0                  -9999.0  \n",
       "       151108                  -9999.0                  -9999.0  \n",
       "       151109                  -9999.0                  -9999.0  "
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "hierarchical_keys.tail()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
